|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface used by all algorithms to abstractly access 2-D homogeneous transformations.
References:
Computer Graphics : Principles and Practice (Systems Programming)
James D. Foley (Editor), et al; Hardcover
Method Summary | |
void |
combine(TransformI transform)
Includes the argument transform into this transform. |
PointI |
forward(PointI point)
Returns a point that is translated, scaled and rotated int the forward direction. |
RangeI |
forward(RangeI range)
Returns a range that is translated, scaled and rotated int the forward direction. |
PointI |
inverse(PointI point)
Returns a point that is translated, scaled and rotated int the inverse direction. |
RangeI |
inverse(RangeI range)
Returns a range that is translated, scaled and rotated int the inverse direction. |
double |
r11()
|
double |
r12()
|
double |
r21()
|
double |
r22()
|
void |
rotate(double angleInRadians)
Adds a rotation to the transformation. |
void |
scale(double scaleX,
double scaleY)
Adds a scaling to the transformation. |
void |
set(double r11,
double r12,
double r21,
double r22,
double tx,
double ty)
Sets the transformation matrix elements where the matrix is: [r11, r12, 0] [r21, r22, 0] [tx, ty, 1] |
void |
translate(double deltaX,
double deltaY)
Adds a translation to the transformation. |
double |
tx()
|
double |
ty()
|
Methods inherited from interface drasys.or.geom.TransformI |
forwardTransform,
forwardTransform,
inputCoordinateSystem,
inverseTransform,
inverseTransform,
outputCoordinateSystem |
Method Detail |
public double tx()
public double ty()
public double r11()
public double r12()
public double r21()
public double r22()
public void set(double r11, double r12, double r21, double r22, double tx, double ty)
public void combine(TransformI transform)
public void translate(double deltaX, double deltaY)
public void scale(double scaleX, double scaleY)
public void rotate(double angleInRadians)
public PointI forward(PointI point) throws GeomException
public PointI inverse(PointI point) throws GeomException
public RangeI forward(RangeI range) throws GeomException
public RangeI inverse(RangeI range) throws GeomException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |