edu.tufts.cs.geometry
Class Geometry

java.lang.Object
  extended by edu.tufts.cs.geometry.Geometry

public class Geometry
extends java.lang.Object


Constructor Summary
Geometry()
           
 
Method Summary
static double distanceToLine(javax.vecmath.GVector point, javax.vecmath.GVector src, javax.vecmath.GVector dst)
           
static double[] getMeans(javax.vecmath.GMatrix data)
           
static double[] getStdDevs(javax.vecmath.GMatrix data)
          Get the means and standard deviations for each dimension
static boolean isRightTurn(javax.vecmath.Vector2d start, javax.vecmath.Vector2d end, javax.vecmath.Vector2d query)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Geometry

public Geometry()
Method Detail

isRightTurn

public static boolean isRightTurn(javax.vecmath.Vector2d start,
                                  javax.vecmath.Vector2d end,
                                  javax.vecmath.Vector2d query)

distanceToLine

public static double distanceToLine(javax.vecmath.GVector point,
                                    javax.vecmath.GVector src,
                                    javax.vecmath.GVector dst)

getMeans

public static double[] getMeans(javax.vecmath.GMatrix data)

getStdDevs

public static double[] getStdDevs(javax.vecmath.GMatrix data)
Get the means and standard deviations for each dimension

Returns:
an array tuples for each dimension, the first of the pair being the mean, and the second being the stddev