t3.hrd.state
Class ScaRotTraTransformImmutable
java.lang.Object
t3.hrd.state.ScaRotTraTransformImmutable
- Direct Known Subclasses:
- ScaRotTraTransformImmutableUniformScale
public class ScaRotTraTransformImmutable
- extends java.lang.Object
Represents a transform in 2D homogenous space, where the transform consists of
a positive scale, a rotation (about the origin) and a translation.
You can specify the transform either by geometric parameters (sx, sy, thetaClockwise, tx, ty)
or by a 3*3 matrix.
If you specify a matrix and then subsequently call a get method to get one of the
geometric parameters then the class will calculate the geometric parameters and
cache them for later reuse.
If you specify geometric parameters then the matrix is calculated when the object
is created.
- Author:
- pjt40
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ScaRotTraTransformImmutable
public ScaRotTraTransformImmutable(double sx,
double sy,
double thetaClockwise,
double tx,
double ty)
ScaRotTraTransformImmutable
public ScaRotTraTransformImmutable(Jama.Matrix mh2)
getMatrix2dHomogReadOnly
public Jama.Matrix getMatrix2dHomogReadOnly()
getTx
public double getTx()
getTy
public double getTy()
getSx
public double getSx()
getSy
public double getSy()
getThetaClockwise
public double getThetaClockwise()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object