/** * Computes the line on which this line segment is lying. * The line's vector is the direction from the first to the second endpoint * of this line segment. * * @param lineToPack the line on which this line segment is lying. */ public void getLine(Line3d lineToPack) { lineToPack.set(firstEndpoint, secondEndpoint); }

/** * Initializes this line to be passing through the given point, with the vector as the direction. * * @param point point on this line. Not modified. * @param vector direction of this line. Not modified. */ public Line3d(Point3d point, Vector3d vector) { set(point, vector); }

/** * Initializes this line to be passing through the two given points. * * @param firstPointOnLine first point on this line. Not modified. * @param secondPointOnLine second point on this line. Not modified. */ public Line3d(Point3d firstPointOnLine, Point3d secondPointOnLine) { set(firstPointOnLine, secondPointOnLine); }