PackageBox2D.Common.Math
Classpublic class b2Mat22
Sourceb2Mat22.as

A 2-by-2 matrix. Stored in column-major order.



Public Properties
 PropertyDefined by
  col1 : b2Vec2
b2Mat22
  col2 : b2Vec2
b2Mat22
Public Methods
 MethodDefined by
  
b2Mat22(angle:Number = 0, c1:b2Vec2 = null, c2:b2Vec2 = null)
b2Mat22
  
Abs():void
b2Mat22
  
AddM(m:b2Mat22):void
b2Mat22
  
b2Mat22
  
GetAngle():Number
b2Mat22
  
Compute the inverse of this matrix, such that inv(A) A = identity.
b2Mat22
  
Set(angle:Number):void
b2Mat22
  
SetIdentity():void
b2Mat22
  
SetM(m:b2Mat22):void
b2Mat22
  
SetVV(c1:b2Vec2, c2:b2Vec2):void
b2Mat22
  
SetZero():void
b2Mat22
  
Solve(out:b2Vec2, bX:Number, bY:Number):b2Vec2
b2Mat22
Property detail
col1property
public var col1:b2Vec2
col2property 
public var col2:b2Vec2
Constructor detail
b2Mat22()constructor
public function b2Mat22(angle:Number = 0, c1:b2Vec2 = null, c2:b2Vec2 = null)Parameters
angle:Number (default = 0)
 
c1:b2Vec2 (default = null)
 
c2:b2Vec2 (default = null)
Method detail
Abs()method
public function Abs():void
AddM()method 
public function AddM(m:b2Mat22):voidParameters
m:b2Mat22
Copy()method 
public function Copy():b2Mat22

Returns
b2Mat22
GetAngle()method 
public function GetAngle():Number

Returns
Number
GetInverse()method 
public function GetInverse(out:b2Mat22):b2Mat22

Compute the inverse of this matrix, such that inv(A) A = identity.

Parameters
out:b2Mat22

Returns
b2Mat22
Set()method 
public function Set(angle:Number):voidParameters
angle:Number
SetIdentity()method 
public function SetIdentity():void
SetM()method 
public function SetM(m:b2Mat22):voidParameters
m:b2Mat22
SetVV()method 
public function SetVV(c1:b2Vec2, c2:b2Vec2):voidParameters
c1:b2Vec2
 
c2:b2Vec2
SetZero()method 
public function SetZero():void
Solve()method 
public function Solve(out:b2Vec2, bX:Number, bY:Number):b2Vec2Parameters
out:b2Vec2
 
bX:Number
 
bY:Number

Returns
b2Vec2