Raytracing
Class Ray

java.lang.Object
  extended by Raytracing.Ray

public class Ray
extends java.lang.Object


Field Summary
 float a
           
 float b
           
 Tuple.Tuple3f direction
           
 float distance
           
 float maxDist
           
 float minDist
           
 Intersectable occluder
           
 Tuple.Tuple3f origin
           
 float tu
           
 float tv
           
 float u
           
 float v
           
 
Constructor Summary
Ray()
           
Ray(float ox, float oy, float oz, float dx, float dy, float dz)
          Creates a new instance of Ray
Ray(Tuple.Tuple3f origin, Tuple.Tuple3f direction)
           
 
Method Summary
 void draw(processing.core.PGraphics g, float length)
           
 Tuple.Tuple3f project(float dist)
           
 void setPointer(Tuple.Tuple3f from, Tuple.Tuple3f to)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

origin

public Tuple.Tuple3f origin

direction

public Tuple.Tuple3f direction

minDist

public float minDist

maxDist

public float maxDist

distance

public float distance

u

public float u

v

public float v

tu

public float tu

tv

public float tv

a

public float a

b

public float b

occluder

public Intersectable occluder
Constructor Detail

Ray

public Ray()

Ray

public Ray(float ox,
           float oy,
           float oz,
           float dx,
           float dy,
           float dz)
Creates a new instance of Ray


Ray

public Ray(Tuple.Tuple3f origin,
           Tuple.Tuple3f direction)
Method Detail

setPointer

public void setPointer(Tuple.Tuple3f from,
                       Tuple.Tuple3f to)

project

public Tuple.Tuple3f project(float dist)

draw

public void draw(processing.core.PGraphics g,
                 float length)