D - the dimension of the space in which the flat shape will be alignedpublic abstract class Alignment<D extends TwoMin> extends GeometrixObject
FlatShape objects.
Alignments align a two-dimensional shape in a two-dimensional or three-dimensional space.| Modifier and Type | Method and Description |
|---|---|
D |
getDimension() |
abstract Vec<D> |
getGlobalDirection(Vec<Two> direction)
Transforms a two-dimensional direction vector into the dimension of this alignment.
|
abstract Vec<D> |
getGlobalPoint(Vec<Two> point)
Transforms a two-dimensional point into the dimension of this alignment.
|
abstract Vec<Two> |
getLocalDirection(Vec<D> direction) |
abstract Vec<Two> |
getLocalPoint(Vec<D> point)
Transforms a point in the global coordinate system into a point in the local coordinate system of this alignment.
|
equals, hashCode, resembles, toStringpublic final D getDimension()
public abstract Vec<Two> getLocalPoint(Vec<D> point)
point - the two-dimensional point which should be transformedpublic abstract Vec<D> getGlobalPoint(Vec<Two> point)
point - the point which should be transformedpublic abstract Vec<D> getGlobalDirection(Vec<Two> direction)
direction - the direction vector which should be transformed