|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmali.spatial.bodies.Line
public class Line
Line is L(t) = P+t*D for any real-valued t.
D is not necessarily unit length.
Thanks to magic software for this one.
| Constructor Summary | |
|---|---|
Line()
Creates a new Line. |
|
Line(float origX,
float origY,
float origZ,
float direcX,
float direcY,
float direcZ)
Creates a new Line. |
|
Line(Line template)
Clone constructor. |
|
Line(Point3f origin,
Vector3f direction)
Creates a new Line. |
|
| Method Summary | |
|---|---|
Line |
clone()
Creates a clone. |
boolean |
equals(Line line)
Checks if the given line equals this one. |
boolean |
equals(java.lang.Object o)
|
Vector3f |
getDirection()
|
float |
getLength()
|
Point3f |
getOrigin()
|
float |
length()
|
void |
set(Line line)
Sets this line to be equal to the passed one. |
void |
set(Point3f origin,
Vector3f direction)
Sets this line to the passed parameters. |
void |
setDirection(float x,
float y,
float z)
Sets the line's direction. |
void |
setDirection(Tuple3f direction)
Sets the line's direction. |
void |
setOrigin(float x,
float y,
float z)
Sets the line's origin. |
void |
setOrigin(Tuple3f origin)
Sets the line's origin. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Line(float origX,
float origY,
float origZ,
float direcX,
float direcY,
float direcZ)
origX - origY - origZ - direcX - direcY - direcZ -
public Line(Point3f origin,
Vector3f direction)
origin - the new origin pointdirection - the new direction vectorpublic Line()
public Line(Line template)
| Method Detail |
|---|
public Point3f getOrigin()
public void setOrigin(float x,
float y,
float z)
x - y - z - public void setOrigin(Tuple3f origin)
origin - new originpublic Vector3f getDirection()
public void setDirection(float x,
float y,
float z)
x - y - z - public void setDirection(Tuple3f direction)
direction - new directionpublic float getLength()
public float length()
public Line clone()
clone in class java.lang.Object
public void set(Point3f origin,
Vector3f direction)
origin - the new origin pointdirection - the new direction vectorpublic void set(Line line)
public boolean equals(Line line)
line - the ray to test for equalitypublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||