/** * Computes the coordinates of the point located on the line this line segment is lying on: * <br> {@code pointToPack.interpolate(firstEndpoint, secondEndpoint, percentage)} </br> * <p> * WARNING: This method generates garbage. * </p> * * @param percentage the percentage along this line segment of the point. * @return the computed point. */ public Point3d pointOnLineGivenPercentageCopy(double percentage) { Point3d point = new Point3d(); pointOnLineGivenPercentage(percentage, point); return point; }