Packagepegas.geom
Classpublic class Matrix
ImplementsGeometry

Defines a Matrix with n rows and n columns.



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

Defined the number of columns in the Matrix.

mproperty 
public var m:Array

The matrix array

rproperty 
public var r:Number

Defined the number of rows in the Matrix.

Constructor detail
Matrix()constructor
public function Matrix(r:Number, c:Number, ar:Array = null)

Creates a new Matrix instance.

Parameters
r:Number — the number of rows in the matrix.
 
c:Number — 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.
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.