Jazz API Documentation

edu.umd.cs.jazz
Interface ZTransformable

All Known Implementing Classes:
ZTransformGroup

public interface ZTransformable

ZTransformable is an interface that represents an object that has a transform that can be get and set.


Method Summary
 void getMatrix(double[] matrix)
          Retrieves the 6 specifiable values of the affine transformation, and places them into an array of double precisions values.
 void setTransform(double m00, double m10, double m01, double m11, double m02, double m12)
          Sets the affine transform.
 

Method Detail

getMatrix

public void getMatrix(double[] matrix)
Retrieves the 6 specifiable values of the affine transformation, and places them into an array of double precisions values. The values are stored in the array as { m00 m10 m01 m11 m02 m12 }. An array of 4 doubles can also be specified, in which case only the first four elements representing the non-transform parts of the array are retrieved and the values are stored into the array as { m00 m10 m01 m11 }
Parameters:
matrix - the double array used to store the returned values.

setTransform

public void setTransform(double m00,
                         double m10,
                         double m01,
                         double m11,
                         double m02,
                         double m12)
Sets the affine transform.
Parameters:
m00, m01, m02, m10, m11, m12 - the 6 floating point values that compose the 3x3 transformation matrix

Jazz API Documentation