apps.lightrays.raytracer.scene.geometry
Class Roots

java.lang.Object
  extended by apps.lightrays.raytracer.scene.geometry.Roots

public class Roots
extends java.lang.Object

The Class Roots.


Field Summary
 int num
          The num.
 double r0
          The r0.
 double r1
          The r1.
 double r2
          The r2.
 double r3
          The r3.
 
Constructor Summary
Roots()
           
 
Method Summary
 double getMaxRoot()
          Gets the max root.
 double getMinPositiveRoot(double r)
          Gets the min positive root.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

num

public int num
The num.


r0

public double r0
The r0.


r1

public double r1
The r1.


r2

public double r2
The r2.


r3

public double r3
The r3.

Constructor Detail

Roots

public Roots()
Method Detail

getMaxRoot

public double getMaxRoot()
Gets the max root.

Returns:
the max root

getMinPositiveRoot

public double getMinPositiveRoot(double r)
Gets the min positive root.

Parameters:
r - the r
Returns:
the min positive root