|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.java.joglutils.msg.math.Line
public class Line
Represents a line in 3D space.
Constructor Summary | |
---|---|
Line()
Default constructor initializes line to point (0, 0, 0) and direction (1, 0, 0) |
|
Line(Vec3f direction,
Vec3f point)
Line goes in direction direction through the point point. |
Method Summary | |
---|---|
boolean |
closestPointToRay(Vec3f rayStart,
Vec3f rayDirection,
Vec3f closestPoint)
Find closest point on this line to the given ray, specified by start point and direction. |
Vec3f |
getDirection()
Direction is normalized internally, so direction is not necessarily equal to plane.setDirection(direction);
plane.getDirection(); |
Vec3f |
getPoint()
|
void |
projectPoint(Vec3f pt,
Vec3f projPt)
Project a point onto the line |
void |
setDirection(Vec3f direction)
Setter does some work to maintain internal caches. |
void |
setPoint(Vec3f point)
Setter does some work to maintain internal caches. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Line()
public Line(Vec3f direction, Vec3f point)
Method Detail |
---|
public void setDirection(Vec3f direction)
public Vec3f getDirection()
plane.setDirection(direction);
plane.getDirection();
public void setPoint(Vec3f point)
public Vec3f getPoint()
public void projectPoint(Vec3f pt, Vec3f projPt)
public boolean closestPointToRay(Vec3f rayStart, Vec3f rayDirection, Vec3f closestPoint)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |