|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectastex.Geometry
public class Geometry
Various involved geometrical operations for the renderer. The ray cylinder intersection is adapted from WildMagics software renderer http://www.geometrictools.com/ Which is available under LGPL license
| Constructor Summary | |
|---|---|
Geometry()
|
|
| Method Summary | |
|---|---|
static double |
cross(double[] a,
double[] b,
double[] c)
Form cross product of two vectors(a = b x c). |
static double |
dot(double[] a,
double[] b)
Generate the dot product. |
static void |
generateOrthonormalBasis(double[] rkU,
double[] rkV,
double[] rkW,
boolean bUnitLengthW)
Generate orthogonal normalised vector set. |
static double |
normalise(double[] p)
Normalise the vector. |
static int |
rayCapsuleInt(double[] ray0,
double[] ray1,
double[] pint,
double[] nint,
boolean top)
Peform ray-cylinder intersection and normal generation. |
static void |
rayCapsuleIntInit(double[] c0,
double[] c1,
double cr,
double zrange)
Initialise cylinder calculations. |
static int |
raySphereInt(double[] ray0,
double[] ray1,
double x,
double y,
double z,
double r,
double[] pint,
double[] nint,
boolean top)
Peform ray-sphere intersection and normal generation. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Geometry()
| Method Detail |
|---|
public static void rayCapsuleIntInit(double[] c0,
double[] c1,
double cr,
double zrange)
public static int raySphereInt(double[] ray0,
double[] ray1,
double x,
double y,
double z,
double r,
double[] pint,
double[] nint,
boolean top)
public static int rayCapsuleInt(double[] ray0,
double[] ray1,
double[] pint,
double[] nint,
boolean top)
public static double normalise(double[] p)
public static void generateOrthonormalBasis(double[] rkU,
double[] rkV,
double[] rkW,
boolean bUnitLengthW)
public static double cross(double[] a,
double[] b,
double[] c)
public static double dot(double[] a,
double[] b)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||