cz.cuni.utils.math
Class Plane3D
java.lang.Object
cz.cuni.utils.math.Plane3D
- Direct Known Subclasses:
- Plane3DExtended
public class Plane3D
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
normal
public Tuple3D normal
t4d
public Tuple4D t4d
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)
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.