|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoptics.Optics
public class Optics
a class for optical functions
Constructor Summary | |
---|---|
Optics()
|
Method Summary | |
---|---|
static double |
calculateDielectricReflectance(Vector3D v,
Vector3D tv,
Vector3D n,
double Ni,
double Nt)
calculates the fresnel reflection |
static Vector3D |
calculateReflectedRay(Vector3D In,
Vector3D Normal)
calculates the reflected ray from an incoming ray at a normal |
static boolean |
calculateRefractedRay(Vector3D Normal,
double Ni,
double Nt,
Vector3D In)
calculates the refracted ray from an incoming ray at a normal |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Optics()
Method Detail |
---|
public static Vector3D calculateReflectedRay(Vector3D In, Vector3D Normal)
In
- incoming vectorNormal
-
public static boolean calculateRefractedRay(Vector3D Normal, double Ni, double Nt, Vector3D In)
Normal
- Ni
- IOR of incoming rayNt
- IOR of refracted rayIn
- [in/out] incoming vector / refracted ray
public static double calculateDielectricReflectance(Vector3D v, Vector3D tv, Vector3D n, double Ni, double Nt)
v
- incoming ray (pointing away from surface)tv
- refracted rayn
- normalNi
- IOR of incoming rayNt
- IOR of the material
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |