sexi.comp
Class Ray
java.lang.Object
|
+--sexi.comp.Ray
- public class Ray
- extends java.lang.Object
This object figure out the line of director vector of ray (beam)
from relative center point (Xo,Yo,Zo)
x = x0 + cos(alpha) * cos(beta) * t
y = y0 + sin(alpha) * cos(beta) * t
z = z0 + sin(beta)* t
t is length of director vector
Constructor Summary |
Ray()
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Ray
public Ray()
setRay
public void setRay(Point3f centerP,
float alphaIn,
float betaIn)
getRelativeZ
public float getRelativeZ(float length)
getCenterX
public float getCenterX()
getCenterY
public float getCenterY()
getCenterZ
public float getCenterZ()
getPointAtLength
public Point3f getPointAtLength(float l)
getAlpha
public double getAlpha()
getAzimuth
public float getAzimuth()
getBeta
public double getBeta()
getInclination
public float getInclination()
getLength
public float getLength()
isOutOfRange
public boolean isOutOfRange(float radius,
float maxX,
float maxY)
isOutOfRange
public boolean isOutOfRange(double radius,
double maxX,
double maxY)
isHeightReached
public boolean isHeightReached(double maxHeight)