org.jeometry.geom3D.primitive.Line3D Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jeometry-api Show documentation
Show all versions of jeometry-api Show documentation
Jeometry, a Mathematic and Geometry library for Java
package org.jeometry.geom3D.primitive;
import java.io.Serializable;
import org.jeometry.Jeometry;
import org.jeometry.geom3D.point.Point3D;
import org.jeometry.geom3D.point.Point3DContainer;
/**
* A class that describe a line that links two {@link Point3D 3D points}.
* @param the type of the underlying 3D points
* @author Julien Seinturier - COMEX S.A. - [email protected] - https://github.com/jorigin/jeometry
* @version {@value Jeometry#version} build {@value Jeometry#BUILD}
* @since 1.0.0
*/
public interface Line3D extends Serializable{
/**
* Get the vertices of the line. A line has two 3D points as vertices.
* @return the {@link org.jeometry.geom3D.point.Point3DContainer vertices} of the line.
*/
Point3DContainer getVertices();
/**
* Return the first extremity of the line.
* @return the first extremity of the line.
*/
T getEnd1();
/**
* Return the second extremity of the line.
* @return the second extremity of the line.
*/
T getEnd2();
}