edu.umd.cs.jazz
Interface ZTransformable

All Known Implementing Classes:
ZCamera, ZTransformGroup

public interface ZTransformable

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

Author:
Benjamin B. Bederson

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.



Copyright 2003 by University of Maryland, College Park, MD 20742, USA All rights reserved.