public class Line extends java.lang.Object implements Savable, java.lang.Cloneable, java.io.Serializable
Line defines a line. Where a line is defined as infinite along
 two points. The two points of the line are defined as the origin and direction.| Constructor and Description | 
|---|
| Line()Constructor instantiates a new  Lineobject. | 
| Line(Vector3f origin,
    Vector3f direction)Constructor instantiates a new  Lineobject. | 
| Modifier and Type | Method and Description | 
|---|---|
| Line | clone() | 
| float | distance(Vector3f point) | 
| float | distanceSquared(Vector3f point) | 
| Vector3f | getDirection()getDirectionreturns the direction of the line. | 
| Vector3f | getOrigin()getOriginreturns the origin of the line. | 
| void | orthogonalLineFit(java.nio.FloatBuffer points) | 
| Vector3f | random()randomdetermines a random point along the line. | 
| Vector3f | random(Vector3f result)randomdetermines a random point along the line. | 
| void | read(JmeImporter e) | 
| void | setDirection(Vector3f direction)setDirectionsets the direction of the line. | 
| void | setOrigin(Vector3f origin)setOriginsets the origin of the line. | 
| void | write(JmeExporter e) | 
public Line()
Line object. The origin and
 direction are set to defaults (0,0,0).public Vector3f getOrigin()
getOrigin returns the origin of the line.public void setOrigin(Vector3f origin)
setOrigin sets the origin of the line.origin - the origin of the line.public Vector3f getDirection()
getDirection returns the direction of the line.public void setDirection(Vector3f direction)
setDirection sets the direction of the line.direction - the direction of the line.public float distanceSquared(Vector3f point)
public float distance(Vector3f point)
public void orthogonalLineFit(java.nio.FloatBuffer points)
public Vector3f random()
random determines a random point along the line.public Vector3f random(Vector3f result)
random determines a random point along the line.result - Vector to store result inpublic void write(JmeExporter e) throws java.io.IOException
public void read(JmeImporter e) throws java.io.IOException
public Line clone()
clone in class java.lang.Object