subscript.geom
Class GRay3D

java.lang.Object
  extended by 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


Constructor Summary
GRay3D(double dx, double dy, double dz, GPoint3D source)
           
GRay3D(GPoint3D source, GPoint3D dest)
           
 
Method Summary
 double getDx()
           
 double getDy()
           
 double getDz()
           
 GLine3D getLine()
           
 GPoint3D getPoint(double distance)
          get a point a certain distance away from the source
 GPoint3D getSource()
           
 GPoint2D intersectPlaneXY()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GRay3D

public GRay3D(double dx,
              double dy,
              double dz,
              GPoint3D source)

GRay3D

public GRay3D(GPoint3D source,
              GPoint3D dest)
Method Detail

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