org.wilmascope.graph
Class Plane
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
-
getSingularValues
public double[] getSingularValues()
getCentroid
public javax.vecmath.Point3f getCentroid()
- Returns:
- Returns the centroid.
getNormal
public javax.vecmath.Vector3f getNormal()
- Returns:
- Returns the normal.