Codota Logo
us.ihmc.euclid.tuple3D
Code IndexAdd Codota to your IDE (free)

How to use us.ihmc.euclid.tuple3D

Best Java code snippets using us.ihmc.euclid.tuple3D (Showing top 20 results out of 468)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: us.ihmc/ihmc-robotics-toolkit

public Ray3d(Point3DReadOnly point, Vector3DReadOnly vector)
{
 this.point = new Point3D(point);
 this.vector = new Vector3D(vector);
}
origin: us.ihmc/ihmc-robotics-toolkit

@Override
public void set(EuclideanWaypoint other)
{
 position.set(other.position);
 linearVelocity.set(other.linearVelocity);
}
origin: us.ihmc/ihmc-robotics-toolkit

@Override
public boolean geometricallyEquals(EuclideanWaypoint other, double epsilon)
{
 if (!position.geometricallyEquals(other.position, epsilon))
   return false;
 if (!linearVelocity.geometricallyEquals(other.linearVelocity, epsilon))
   return false;
 return true;
}
origin: us.ihmc/ihmc-geometry

public double dot(Vector3D vector)
{
 return position.getX() * vector.getX() + position.getY() * vector.getY() + position.getZ() * vector.getZ();
}
origin: us.ihmc/simulation-construction-set-tools

private void updatePointsAndVectors(Point3DReadOnly initialPosition, Point3DReadOnly finalPosition, double velocityMagnitude)
{
 this.finalPosition.set(finalPosition);
 directionVector.set(finalPosition);
 directionVector.sub(initialPosition);
 directionVector.normalize();
 velocityVector.set(directionVector);
 velocityVector.scale(velocityMagnitude);
}
origin: us.ihmc/ihmc-robotics-toolkit

@Override
public boolean epsilonEquals(EuclideanWaypoint other, double epsilon)
{
 if (!position.epsilonEquals(other.position, epsilon))
   return false;
 if (!linearVelocity.epsilonEquals(other.linearVelocity, epsilon))
   return false;
 return true;
}
origin: us.ihmc/euclid-geometry

/**
* Sets the point and vector of this plane to zero. After calling this method, this plane becomes
* invalid. A new valid point and valid normal will have to be set so this plane is again usable.
*/
@Override
public void setToZero()
{
 point.setToZero();
 normal.setToZero();
 hasPointBeenSet = false;
 hasNormalBeenSet = false;
}
origin: us.ihmc/ihmc-interfaces

@Override
public boolean equals(Object other)
{
 if(other == null) return false;
 if(other == this) return true;
 if(!(other instanceof QuadrupedGroundPlaneMessage)) return false;
 QuadrupedGroundPlaneMessage otherMyClass = (QuadrupedGroundPlaneMessage) other;
 if(this.sequence_id_ != otherMyClass.sequence_id_) return false;
 if (!this.region_origin_.equals(otherMyClass.region_origin_)) return false;
 if (!this.region_normal_.equals(otherMyClass.region_normal_)) return false;
 return true;
}
origin: us.ihmc/euclid-geometry

/**
* Sets the point and normal of this plane to {@link Double#NaN}. After calling this method, this
* plane becomes invalid. A new valid point and valid normal will have to be set so this plane is
* again usable.
*/
@Override
public void setToNaN()
{
 point.setToNaN();
 normal.setToNaN();
}
origin: us.ihmc/euclid-geometry

/**
* Tests if this plane contains {@link Double#NaN}.
*
* @return {@code true} if {@code point} and/or {@code normal} contains {@link Double#NaN},
*         {@code false} otherwise.
*/
@Override
public boolean containsNaN()
{
 return point.containsNaN() || normal.containsNaN();
}
origin: us.ihmc/euclid-geometry

  /**
  * Calculates and returns a hash code value from the value of each component of this line 3D.
  *
  * @return the hash code value for this line 3D.
  */
  @Override
  public int hashCode()
  {
   long bits = 31L * point.hashCode() + direction.hashCode();
   return (int) (bits ^ bits >> 32);
  }
}
origin: us.ihmc/ihmc-graphics-description

@Override
public void applyInverseTransform(Transform transform)
{
 for (int i = 0; i < vertices.length; i++)
   vertices[i].applyInverseTransform(transform);
 for (int i = 0; i < vertexNormals.length; i++)
   vertexNormals[i].applyInverseTransform(transform);
}
origin: us.ihmc/ihmc-graphics-description

@Override
public void applyTransform(Transform transform)
{
 for (int i = 0; i < vertices.length; i++)
   vertices[i].applyTransform(transform);
 for (int i = 0; i < vertexNormals.length; i++)
   vertexNormals[i].applyTransform(transform);
}
origin: us.ihmc/ihmc-interfaces

public EuclideanTrajectoryPointMessage()
{
 position_ = new us.ihmc.euclid.tuple3D.Point3D();
 linear_velocity_ = new us.ihmc.euclid.tuple3D.Vector3D();
}
origin: us.ihmc/robot-environment-awareness

public void setBox(double lx, double ly, double lz, double centerX, double centerY, double centerZ)
{
 boxSize.set(lx, ly, lz);
 boxCenter.set(centerX, centerY, centerZ);
}
origin: us.ihmc/ihmc-interfaces

@Override
public boolean equals(Object other)
{
 if(other == null) return false;
 if(other == this) return true;
 if(!(other instanceof EuclideanTrajectoryPointMessage)) return false;
 EuclideanTrajectoryPointMessage otherMyClass = (EuclideanTrajectoryPointMessage) other;
 if(this.sequence_id_ != otherMyClass.sequence_id_) return false;
 if(this.time_ != otherMyClass.time_) return false;
 if (!this.position_.equals(otherMyClass.position_)) return false;
 if (!this.linear_velocity_.equals(otherMyClass.linear_velocity_)) return false;
 return true;
}
origin: us.ihmc/ihmc-interfaces

public QuadrupedGroundPlaneMessage()
{
 region_origin_ = new us.ihmc.euclid.tuple3D.Point3D();
 region_normal_ = new us.ihmc.euclid.tuple3D.Vector3D();
}
origin: us.ihmc/robot-environment-awareness

public void setPlane(Point3D pointOnPlane, Vector3D planeNormal)
{
 this.pointOnPlane.set(pointOnPlane);
 this.planeNormal.set(planeNormal);
}
origin: us.ihmc/euclid-geometry

/**
* Tests on a per component basis, if this plane 3D is exactly equal to {@code other}.
*
* @param other the other plane 3D to compare against this. Not modified.
* @return {@code true} if the two planes are exactly equal component-wise, {@code false} otherwise.
*/
public boolean equals(Plane3D other)
{
 if (other == null)
   return false;
 else
   return point.equals(other.point) && normal.equals(other.normal);
}
origin: us.ihmc/robot-environment-awareness

private <T> PlanarRegionSegmentationRawData(int regionId, Vector3D32 normal, Point3D32 origin, Stream<T> streamToConvert, List<LineSegment2D> intersections)
{
 this(regionId, new Vector3D(normal), new Point3D(origin), streamToConvert, intersections);
}
us.ihmc.euclid.tuple3D

Most used classes

  • Vector3D
  • Point3D
  • Point3DReadOnly
  • Point3D32
  • Tuple3DBasics
  • Point3DBasics,
  • Tuple3DReadOnly,
  • Vector3DBasics,
  • Vector3D32,
  • Point3D32Test,
  • Point3DBasicsTest,
  • Point3DTest,
  • Tuple3DBasicsTest,
  • Tuple3DReadOnlyTest,
  • Vector3D32Test,
  • Vector3DBasicsTest,
  • Vector3DTest
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now