public void setSecondEndpoint(Point3d secondEndpoint) { lineSegment3d.setSecondEndpoint(secondEndpoint); }
/** * Redefines this line segment with new endpoints. * * @param firstEndpoint new endpoint of this line segment. Not modified * @param secondEndpoint new second endpoint of this line segment. Not modified. */ public void set(Point3d firstEndpoint, Point3d secondEndpoint) { setFirstEndpoint(firstEndpoint); setSecondEndpoint(secondEndpoint); }
/** * Redefines this line segments with new endpoints. * * @param firstEndpointX x-coordinate of the new first endpoint. * @param firstEndpointY y-coordinate of the new first endpoint. * @param firstEndpointZ z-coordinate of the new first endpoint. * @param secondEndpointX x-coordinate of the new second endpoint. * @param secondEndpointY y-coordinate of the new second endpoint. * @param secondEndpointZ z-coordinate of the new second endpoint. */ public void set(double firstEndpointX, double firstEndpointY, double firstEndpointZ, double secondEndpointX, double secondEndpointY, double secondEndpointZ) { setFirstEndpoint(firstEndpointX, firstEndpointY, firstEndpointZ); setSecondEndpoint(secondEndpointX, secondEndpointY, secondEndpointZ); }
public void setSecondEndpoint(FramePoint secondEndpoint) { checkReferenceFrameMatch(secondEndpoint); lineSegment3d.setSecondEndpoint(secondEndpoint.getPoint()); }