Packagegraphics.geom
Classpublic class MatrixN
InheritanceMatrixN Inheritance Object
Implements Geometry

Defines a Matrix with n rows and n columns.



Public Properties
 PropertyDefined By
  c : uint
Defined the number of columns in the Matrix.
MatrixN
  m : Array
The matrix array
MatrixN
  r : uint
Defined the number of rows in the Matrix.
MatrixN
Public Methods
 MethodDefined By
  
MatrixN(r:uint, c:uint, ar:Array = null)
Creates a new Matrix instance.
MatrixN
  
clone():*
Returns a shallow copy of this instance.
MatrixN
  
equals(o:*):Boolean
Compares the specified object with this object for equality.
MatrixN
  
isIdentity():Boolean
Returns true if the MatrixN is the identity.
MatrixN
  
toSource(indent:int = 0):String
Returns the source code string representation of the object.
MatrixN
  
toString():String
Returns the string representation of the object.
MatrixN
Property Detail
cproperty
public var c:uint

Defined the number of columns in the Matrix.

mproperty 
public var m:Array

The matrix array

rproperty 
public var r:uint

Defined the number of rows in the Matrix.

Constructor Detail
MatrixN()Constructor
public function MatrixN(r:uint, c:uint, ar:Array = null)

Creates a new Matrix instance.

Parameters
r:uint — the number of rows in the matrix.
 
c:uint — the number of columns in the matrix.
 
ar:Array (default = null) — the optional Matrix instance to fill the current Matrix.
Method Detail
clone()method
public function clone():*

Returns a shallow copy of this instance.

Returns
* — a shallow copy of this instance.
equals()method 
public function equals(o:*):Boolean

Compares the specified object with this object for equality.

Parameters

o:*

Returns
Booleantrue if the the specified object is equal with this object.
isIdentity()method 
public function isIdentity():Boolean

Returns true if the MatrixN is the identity.

Returns
Booleantrue if the MatrixN is the identity.
toSource()method 
public function toSource(indent:int = 0):String

Returns the source code string representation of the object.

Parameters

indent:int (default = 0)

Returns
String — the source code string representation of the object.
toString()method 
public function toString():String

Returns the string representation of the object.

Returns
String — the string representation of the object.