subscript.geom
Class GRay3D
java.lang.Object
subscript.geom.GRay3D
public class GRay3D
- extends java.lang.Object
A 3D ray. We use a 3D line internally, making the point the source
of the ray. A few methods are overloaded to deal with the fact that
the ray is not of infinite length
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GRay3D
public GRay3D(double dx,
double dy,
double dz,
GPoint3D source)
GRay3D
public GRay3D(GPoint3D source,
GPoint3D dest)
getPoint
public GPoint3D getPoint(double distance)
- get a point a certain distance away from the source
getLine
public GLine3D getLine()
getSource
public GPoint3D getSource()
getDx
public double getDx()
getDy
public double getDy()
getDz
public double getDz()
intersectPlaneXY
public GPoint2D intersectPlaneXY()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object