cz.cuni.utils.math
Class Plane3D

java.lang.Object
  extended by cz.cuni.utils.math.Plane3D
Direct Known Subclasses:
Plane3DExtended

public class Plane3D
extends java.lang.Object


Field Summary
 Tuple3D normal
           
 Tuple4D t4d
           
 
Constructor Summary
Plane3D()
           
Plane3D(double x, double y, double z, double d)
           
Plane3D(Plane3D a)
           
Plane3D(Tuple3D iNormal, double d)
           
Plane3D(Tuple3D iNormal, Tuple3D point)
           
Plane3D(Tuple3D a, Tuple3D b, Tuple3D c)
           
 
Method Summary
 void countPlane(Tuple3D iNormal, double d)
           
 void countPlane(Tuple3D iNormal, Tuple3D point)
           
 void countPlane(Tuple3D a, Tuple3D b, Tuple3D c)
           
 double distance(Tuple3D point)
           
 Line3D getCommonLine()
           
 Tuple3D getCommonPoint()
          Used for testing the planes for equality.
 Tuple3D getCommonPoint(double arg)
          You can use it to obtain 2 different points and get a line.
 Tuple3D getCommonVector()
           
 boolean inPlane(Tuple3D point)
           
 void inverseNormal()
          Will inverse normal vector of the plane, so it points to other half-space of the 3D space.
 Tuple3D perpendicularVector(Tuple3D vectorInPlane)
           
 Tuple3D project(Tuple3D point)
           
 void recountPlane(Tuple3D newNormal)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

normal

public Tuple3D normal

t4d

public Tuple4D t4d
Constructor Detail

Plane3D

public Plane3D()

Plane3D

public Plane3D(double x,
               double y,
               double z,
               double d)

Plane3D

public Plane3D(Tuple3D iNormal,
               double d)

Plane3D

public Plane3D(Tuple3D iNormal,
               Tuple3D point)

Plane3D

public Plane3D(Tuple3D a,
               Tuple3D b,
               Tuple3D c)

Plane3D

public Plane3D(Plane3D a)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

countPlane

public void countPlane(Tuple3D iNormal,
                       double d)

countPlane

public void countPlane(Tuple3D iNormal,
                       Tuple3D point)

countPlane

public void countPlane(Tuple3D a,
                       Tuple3D b,
                       Tuple3D c)

recountPlane

public void recountPlane(Tuple3D newNormal)

getCommonPoint

public Tuple3D getCommonPoint()
Used for testing the planes for equality. Can be used to obtain a point of plane (like in recountPlane()). Returns null if wrong equation (x, y, z coeficients == 0).


getCommonPoint

public Tuple3D getCommonPoint(double arg)
You can use it to obtain 2 different points and get a line. Used by getCommonVector(), getCommonLine();


getCommonVector

public Tuple3D getCommonVector()

getCommonLine

public Line3D getCommonLine()

project

public Tuple3D project(Tuple3D point)

distance

public double distance(Tuple3D point)

inPlane

public boolean inPlane(Tuple3D point)

perpendicularVector

public Tuple3D perpendicularVector(Tuple3D vectorInPlane)

inverseNormal

public void inverseNormal()
Will inverse normal vector of the plane, so it points to other half-space of the 3D space.