Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.anotherbigidea.flash.structs
Class Matrix  view Matrix download Matrix.java

java.lang.Object
  extended bycom.anotherbigidea.flash.structs.Matrix

public class Matrix
extends java.lang.Object


Field Summary
protected  double scaleX
           
protected  double scaleY
           
protected  double skew0
           
protected  double skew1
           
protected  double translateX
           
protected  double translateY
           
 
Constructor Summary
Matrix()
          An identity matrix
Matrix(double translateX, double translateY)
           
Matrix(double scaleX, double scaleY, double skew0, double skew1, double translateX, double translateY)
           
Matrix(com.anotherbigidea.io.InStream in)
           
Matrix(Matrix copy)
          Copy another matrix
 
Method Summary
 double getScaleX()
           
 double getScaleY()
           
 double getSkew0()
           
 double getSkew1()
           
 double getTranslateX()
           
 double getTranslateY()
           
 void setScaleX(double scaleX)
           
 void setScaleY(double scaleY)
           
 void setSkew0(double skew0)
           
 void setSkew1(double skew1)
           
 void setTranslateX(double translateX)
           
 void setTranslateY(double translateY)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 void write(com.anotherbigidea.io.OutStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

scaleX

protected double scaleX

scaleY

protected double scaleY

skew0

protected double skew0

skew1

protected double skew1

translateX

protected double translateX

translateY

protected double translateY
Constructor Detail

Matrix

public Matrix()
An identity matrix


Matrix

public Matrix(double translateX,
              double translateY)

Matrix

public Matrix(Matrix copy)
Copy another matrix


Matrix

public Matrix(double scaleX,
              double scaleY,
              double skew0,
              double skew1,
              double translateX,
              double translateY)

Matrix

public Matrix(com.anotherbigidea.io.InStream in)
       throws java.io.IOException
Method Detail

getScaleX

public double getScaleX()

getScaleY

public double getScaleY()

getSkew0

public double getSkew0()

getSkew1

public double getSkew1()

getTranslateX

public double getTranslateX()

getTranslateY

public double getTranslateY()

setScaleX

public void setScaleX(double scaleX)

setScaleY

public void setScaleY(double scaleY)

setSkew0

public void setSkew0(double skew0)

setSkew1

public void setSkew1(double skew1)

setTranslateX

public void setTranslateX(double translateX)

setTranslateY

public void setTranslateY(double translateY)

write

public void write(com.anotherbigidea.io.OutStream out)
           throws java.io.IOException

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).