All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jeometry.geom3D.primitive.Line3D Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
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();

  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy