Class GeometryHelpers

java.lang.Object
  extended by GeometryHelpers

public class GeometryHelpers
extends java.lang.Object

Grab bag of helper functions for geometric computation

Since:
1.0

Nested Class Summary
static class GeometryHelpers.Circle
           
 
Constructor Summary
GeometryHelpers()
           
 
Method Summary
static double rayToCircle(double[] arrLfRayDir, double[] arrLfRayOrg, double[] arrLfCircCen, double lfCircRadSqrd)
           
static void testCircleCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeometryHelpers

public GeometryHelpers()
Method Detail

testCircleCode

public static void testCircleCode()

rayToCircle

public static double rayToCircle(double[] arrLfRayDir,
                                 double[] arrLfRayOrg,
                                 double[] arrLfCircCen,
                                 double lfCircRadSqrd)
Parameters:
arrLfRayDir - direction of ray (not necc. unit length)
arrLfRayOrg - position of ray origin
arrLfCircCen - position of circle center
lfCircRadSqrd - rad^2 of circle
Returns:
distance along ray until it first hits circle.