drasys.or.geom.rect2
Interface TransformI

All Known Implementing Classes:
Transform

public interface TransformI
extends TransformI

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

tx

public double tx()

ty

public double ty()

r11

public double r11()

r12

public double r12()

r21

public double r21()

r22

public double r22()

set

public 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]

combine

public void combine(TransformI transform)
Includes the argument transform into this transform.

translate

public void translate(double deltaX,
                      double deltaY)
Adds a translation to the transformation. Where the translation is given by:
[ 1, 0, 0]
[ 0, 1, 0]
[deltaX, deltaY, 1]

scale

public void scale(double scaleX,
                  double scaleY)
Adds a scaling to the transformation. Where the scaling is given by:
[scaleX, 0, 0]
[ 0, scaleY, 0]
[ 0, 0, 1]

rotate

public void rotate(double angleInRadians)
Adds a rotation to the transformation. Where the rotation is given by:
[ cos, sin, 0]
[-sin, cos, 0]
[ 0, 0, 1]

forward

public PointI forward(PointI point)
               throws GeomException
Returns a point that is translated, scaled and rotated int the forward direction.

inverse

public PointI inverse(PointI point)
               throws GeomException
Returns a point that is translated, scaled and rotated int the inverse direction.

forward

public RangeI forward(RangeI range)
               throws GeomException
Returns a range that is translated, scaled and rotated int the forward direction.

inverse

public RangeI inverse(RangeI range)
               throws GeomException
Returns a range that is translated, scaled and rotated int the inverse direction.


Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com