org.wilmascope.graph
Class Plane

java.lang.Object
  extended by org.wilmascope.graph.Plane

public class Plane
extends java.lang.Object

A plane defined by a normal vector and a point in the plane

Author:
dwyer

Constructor Summary
Plane(NodeList nodes)
          Creates a plane of best fit for the nodes using orthogonal regression
Plane(javax.vecmath.Point3f centroid, javax.vecmath.Vector3f normal)
           
 
Method Summary
 javax.vecmath.Point3f getCentroid()
           
 javax.vecmath.Vector3f getNormal()
           
 double[] getSingularValues()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Plane

public Plane(javax.vecmath.Point3f centroid,
             javax.vecmath.Vector3f normal)

Plane

public Plane(NodeList nodes)
Creates a plane of best fit for the nodes using orthogonal regression

Parameters:
nodes -
Method Detail

getSingularValues

public double[] getSingularValues()

getCentroid

public javax.vecmath.Point3f getCentroid()
Returns:
Returns the centroid.

getNormal

public javax.vecmath.Vector3f getNormal()
Returns:
Returns the normal.