|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.math.Plane
Equation of a plane in a three-dimensional space (x,y,z).
The plane equation is expressed by c, cx and cy coefficients as
below:
z(x,y) = c + cx*x + cy*yThose coefficients can be set directly, or computed by a linear regression of this plane through a set of three-dimensional points.
| Field Summary | |
double |
c
The c coefficient for this plane. |
double |
cx
The cx coefficient for this plane. |
double |
cy
The cy coefficient for this plane. |
| Constructor Summary | |
Plane()
Construct a new plane. |
|
| Method Summary | |
java.lang.Object |
clone()
Returns a clone of this plane. |
boolean |
equals(java.lang.Object object)
Compare this plane with the specified object for equality. |
int |
hashCode()
Returns a hash code value for this plane. |
void |
setPlane(double[] x,
double[] y,
double[] z)
Compute the plane's coefficients from a set of points. |
void |
setPlane(javax.vecmath.Point3d P1,
javax.vecmath.Point3d P2,
javax.vecmath.Point3d P3)
Computes the plane's coefficients from the specified points. |
java.lang.String |
toString()
Returns a string representation of this plane. |
double |
x(double y,
double z)
Compute the x value for the specified (y,z) point. |
double |
y(double x,
double z)
Compute the y value for the specified (x,z) point. |
double |
z(double x,
double y)
Compute the z value for the specified (x,y) point. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public double c
public double cx
public double cy
| Constructor Detail |
public Plane()
| Method Detail |
public final double z(double x,
double y)
z(x,y) = c + cx*x + cy*y
x - The x value.y - The y value.
public final double y(double x,
double z)
y(x,z) = (z - (c+cx*x)) / cy
x - The x value.z - The y value.
public final double x(double y,
double z)
x(y,z) = (z - (c+cy*y)) / cx
y - The x value.z - The y value.
public void setPlane(javax.vecmath.Point3d P1,
javax.vecmath.Point3d P2,
javax.vecmath.Point3d P3)
throws java.lang.ArithmeticException
java.lang.ArithmeticException - If the three points are colinear.
public void setPlane(double[] x,
double[] y,
double[] z)
throws javax.vecmath.MismatchedSizeException
x - vector of x coordinatesy - vector of y coordinatesz - vector of z values
javax.vecmath.MismatchedSizeException - if x, y and z
don't have the same length.public java.lang.String toString()
z(x,y) =c+cx*x +cy*y
public boolean equals(java.lang.Object object)
public int hashCode()
public java.lang.Object clone()
clone in interface org.opengis.util.Cloneable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||