| Modifier and Type | Field and Description |
|---|---|
static FlatAlignment |
NO_ALIGNMENT
This alignment has no translation and rotation.
|
| Constructor and Description |
|---|
FlatAlignment(Vec<Two> translation,
double rotation)
Creates a new
FlatAlignment object from a translation vector and a rotation value. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
Vec<Two> |
getGlobalDirection(Vec<Two> direction)
Transforms a two-dimensional direction vector into the dimension of this alignment.
|
Vec<Two> |
getGlobalPoint(Vec<Two> point)
Transforms a two-dimensional point into the dimension of this alignment.
|
Vec<Two> |
getLocalDirection(Vec<Two> direction) |
Vec<Two> |
getLocalPoint(Vec<Two> point)
Transforms a point in the global coordinate system into a point in the local coordinate system of this alignment.
|
int |
hashCode() |
boolean |
resembles(java.lang.Object o) |
java.lang.String |
toString() |
getDimensionpublic static final FlatAlignment NO_ALIGNMENT
public FlatAlignment(Vec<Two> translation, double rotation)
FlatAlignment object from a translation vector and a rotation value.translation - a vector by which the shape will be movedrotation - a value which specifies the clockwise rotation in degrees of the shapejava.lang.NullPointerException - if translation is nulljava.lang.IllegalArgumentException - if rotation is equal to (+/-)Infinity or NaNpublic Vec<Two> getLocalPoint(Vec<Two> point)
AlignmentgetLocalPoint in class Alignment<Two>point - the two-dimensional point which should be transformedpublic Vec<Two> getGlobalPoint(Vec<Two> point)
AlignmentgetGlobalPoint in class Alignment<Two>point - the point which should be transformedpublic Vec<Two> getLocalDirection(Vec<Two> direction)
getLocalDirection in class Alignment<Two>public Vec<Two> getGlobalDirection(Vec<Two> direction)
AlignmentgetGlobalDirection in class Alignment<Two>direction - the direction vector which should be transformedpublic 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 GeometrixObject