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()
           
 
Method Summary
 double getAlpha()
           
 float getAzimuth()
           
 double getBeta()
           
 float getCenterX()
           
 float getCenterY()
           
 float getCenterZ()
           
 float getInclination()
           
 float getLength()
           
 Point3f getPointAtLength(float l)
           
 float getRelativeZ(float length)
           
 boolean isHeightReached(double maxHeight)
           
 boolean isOutOfRange(double radius, double maxX, double maxY)
           
 boolean isOutOfRange(float radius, float maxX, float maxY)
           
 void setRay(Point3f centerP, float alphaIn, float betaIn)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ray

public Ray()
Method Detail

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)