public final class PlaneCoordinateSystem extends GeometrixObject
| Modifier and Type | Method and Description |
|---|---|
static PlaneCoordinateSystem |
create(Plane plane,
Vec<Three> center,
Vec<Three> xAxis,
Vec<Three> yAxis)
Creates a local coordinate system of plane out of a given center and two axes.
|
boolean |
equals(java.lang.Object o) |
Vec<Three> |
getCenter() |
Vec<Three> |
getGlobalDirection(Vec<Two> localDirection) |
Vec<Three> |
getGlobalPoint(Vec<Two> localPoint) |
Vec<Two> |
getLocalDirection(Vec<Three> globalDirection) |
Vec<Two> |
getLocalPoint(Vec<Three> globalPoint) |
Plane |
getPlane() |
Vec<Three> |
getXAxis() |
Vec<Three> |
getYAxis() |
int |
hashCode() |
boolean |
resembles(java.lang.Object o) |
java.lang.String |
toString() |
public static PlaneCoordinateSystem create(Plane plane, Vec<Three> center, Vec<Three> xAxis, Vec<Three> yAxis)
plane - the plane on which the coordinate system lies oncenter - the point at which the center of the coordinate system lies on the planexAxis - the x-axis of the coordinate systemyAxis - the y-axis of the coordinate systemjava.lang.NullPointerException - if one of the arguments is nulljava.lang.IllegalArgumentException - if center lies outside the object spacejava.lang.IllegalArgumentException - if xAxis or yAxis is a zero vectorjava.lang.IllegalArgumentException - if xAxis or yAxis is perpendicular to the planejava.lang.IllegalArgumentException - if xAxis and yAxis are parallelpublic boolean resembles(java.lang.Object o)
resembles in class GeometrixObjectpublic boolean equals(java.lang.Object o)
equals in class GeometrixObjectpublic int hashCode()
hashCode in class GeometrixObjectpublic java.lang.String toString()
toString in class GeometrixObjectpublic Plane getPlane()