/** * Initializes this line segment to have the given endpoints. * * @param firstEndpoint the first endpoint of this line segment. Not modified. * @param secondEndpoint the second endpoint of this line segment. Not modified. */ public LineSegment3d(Point3d firstEndpoint, Point3d secondEndpoint) { set(firstEndpoint, secondEndpoint); }
/** * Sets this line segment to be same as the given line segment. * * @param other the other line segment to copy. Not modified. */ @Override public void set(LineSegment3d other) { set(other.firstEndpoint, other.secondEndpoint); }
public void set(Point3d firstEndpoint, Vector3d fromFirstToSecondEndpoint) { lineSegment3d.set(firstEndpoint, fromFirstToSecondEndpoint); }
/** * Initializes this line segment to have the given endpoints. * * @param firstEndpointX x-coordinate of the first endpoint of this line segment. * @param firstEndpointY y-coordinate of the first endpoint of this line segment. * @param firstEndpointZ z-coordinate of the first endpoint of this line segment. * @param secondEndpointX x-coordinate of the second endpoint of this line segment. * @param secondEndpointY y-coordinate of the second endpoint of this line segment. * @param secondEndpointZ z-coordinate of the second endpoint of this line segment. */ public LineSegment3d(double firstEndpointX, double firstEndpointY, double firstEndpointZ, double secondEndpointX, double secondEndpointY, double secondEndpointZ) { set(firstEndpointX, firstEndpointY, firstEndpointZ, secondEndpointX, secondEndpointY, secondEndpointZ); }
public void set(FramePoint firstEndpoint, FrameVector fromFirstToSecondEndpoint) { checkReferenceFrameMatch(firstEndpoint); checkReferenceFrameMatch(fromFirstToSecondEndpoint); lineSegment3d.set(firstEndpoint.getPoint(), fromFirstToSecondEndpoint.getVector()); }