|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbackend.Line3f
public class Line3f
The Line3f class represents a line in R^3 (vector form)
Constructor Summary | |
---|---|
Line3f(javax.vecmath.Point3f pt,
javax.vecmath.Vector3f dir)
The default Line3f constructor can be used to create a Line3f class. |
Method Summary | |
---|---|
javax.vecmath.Point3f |
getIntersection(Line3f myLine)
getIntersection will return the intersection point between this line and the line passed to the function. |
float |
getIntersectionSphereScaleVal(SphereModel mySphere)
getIntersectionSphereScaleVal will return a scale value which can be used in the getPointFromLine function to get the intersection points of this line with a given SphereModel |
void |
getPointFromLine(float scale,
javax.vecmath.Point3f storeHere)
getPointFromLine will return a point off this line based on a scaling where 0 would get you the point used to place the line and - or + values will move you left or right based on the direction vector. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Line3f(javax.vecmath.Point3f pt, javax.vecmath.Vector3f dir)
pt
- should be a point on the linedir
- should be the direction of the lineMethod Detail |
---|
public javax.vecmath.Point3f getIntersection(Line3f myLine)
myLine
- is the Line3f to check against for intersectionpublic void getPointFromLine(float scale, javax.vecmath.Point3f storeHere)
scale
- is the scale value for the direction vectorstoreMe
- is where the new point will be placedpublic float getIntersectionSphereScaleVal(SphereModel mySphere)
mySphere
- is the sphere model to check for intersections
with
public 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 |