ProGAL.geom3d
Class ParametricPlane

java.lang.Object
  extended by ProGAL.geom3d.ParametricPlane

public class ParametricPlane
extends java.lang.Object


Field Summary
 Vector n
           
 Point p
           
 Vector v1
           
 Vector v2
           
 
Constructor Summary
ParametricPlane(Point p, Vector normal)
          Construct a parametric plane with the specified point and normal.
ParametricPlane(Point p, Vector v1, Vector v2)
          8 + 31 = 39HOps
 
Method Summary
 Point getP()
           
 Point getP(double[] pars)
           
 double intersectionParameter(Line l)
          Returns a parameter setting for the line describing the intersection with this plane.
 double[] projectPoint(Point v)
          Projects the point v onto this plane and returns the parameters of the projected point (scaling of v1, of v2 and finally the distance or scaling along n).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

p

public Point p

n

public Vector n

v1

public Vector v1

v2

public Vector v2
Constructor Detail

ParametricPlane

public ParametricPlane(Point p,
                       Vector v1,
                       Vector v2)
8 + 31 = 39HOps


ParametricPlane

public ParametricPlane(Point p,
                       Vector normal)
Construct a parametric plane with the specified point and normal. It is not specified how the orthogonal basis is constructed except that the third basis-vector will be the normal vector.

Method Detail

projectPoint

public double[] projectPoint(Point v)
Projects the point v onto this plane and returns the parameters of the projected point (scaling of v1, of v2 and finally the distance or scaling along n). 9HOps


intersectionParameter

public double intersectionParameter(Line l)
Returns a parameter setting for the line describing the intersection with this plane. Assumes there's a point intersection.


getP

public Point getP()

getP

public Point getP(double[] pars)