C# Class Box2D.Common.Mat22

Afficher le fichier Open project: gerich-home/box2dnet Class Usage Examples

Méthodes publiques

Свойство Type Description
Ex Vec2
Ey Vec2

Méthodes publiques

Méthode Description
Abs ( ) : Mat22

Return the matrix composed of the absolute values of all elements. djm: fixed double allocation

Abs ( Mat22 r ) : Mat22

Return the matrix composed of the absolute values of all elements.

AbsLocal ( ) : void
AbsToOut ( Mat22 r, Mat22 result ) : void
Add ( Mat22 b ) : Mat22

Add this matrix to B, return the result.

AddLocal ( Mat22 b ) : Mat22

Add B to this matrix locally.

Clone ( ) : Mat22

Return a clone of this matrix. djm fixed double allocation

CreateRotationalTransform ( float angle ) : Mat22
CreateRotationalTransform ( float angle, Mat22 result ) : void
CreateScaleTransform ( float scale ) : Mat22
CreateScaleTransform ( float scale, Mat22 result ) : void
Equals ( Object obj ) : bool
GetHashCode ( ) : int
Invert ( ) : Mat22

Returns the inverted Mat22 - does NOT invert the matrix locally!

InvertLocal ( ) : Mat22
InvertToOut ( Mat22 result ) : void
Mat22 ( ) : System

Construct zero matrix. Note: this is NOT an identity matrix! djm fixed double allocation problem

Mat22 ( Vec2 c1, Vec2 c2 ) : System

Create a matrix with given vectors as columns.

Mat22 ( float exx, float col2x, float exy, float col2y ) : System

Create a matrix from four floats.

Mul ( Mat22 r ) : Mat22

Multiply another matrix by this one (this one on left). djm optimized

Mul ( Mat22 a, Mat22 b ) : Mat22
Mul ( Mat22 r, Vec2 v ) : Vec2
Mul ( Vec2 v ) : Vec2

Multiply a vector by this matrix.

MulLocal ( Mat22 R ) : Mat22
MulToOut ( Mat22 r, Mat22 result ) : void
MulToOut ( Mat22 a, Mat22 b, Mat22 result ) : void
MulToOut ( Mat22 r, Vec2 v, Vec2 result ) : void
MulToOut ( Vec2 v, Vec2 result ) : void
MulToOutUnsafe ( Mat22 r, Mat22 result ) : void
MulToOutUnsafe ( Mat22 a, Mat22 b, Mat22 result ) : void
MulToOutUnsafe ( Mat22 r, Vec2 v, Vec2 result ) : void
MulToOutUnsafe ( Vec2 v, Vec2 result ) : void
MulTrans ( Mat22 b ) : Mat22

Multiply another matrix by the transpose of this one (transpose of this one on left). djm: optimized

MulTrans ( Mat22 a, Mat22 b ) : Mat22
MulTrans ( Mat22 r, Vec2 v ) : Vec2
MulTrans ( Vec2 v ) : Vec2

Multiply a vector by the transpose of this matrix.

MulTransLocal ( Mat22 b ) : Mat22
MulTransToOut ( Mat22 b, Mat22 result ) : void
MulTransToOut ( Mat22 a, Mat22 b, Mat22 result ) : void
MulTransToOut ( Mat22 r, Vec2 v, Vec2 result ) : void
MulTransToOut ( Vec2 v, Vec2 result ) : void
MulTransToOutUnsafe ( Mat22 b, Mat22 result ) : void
MulTransToOutUnsafe ( Mat22 a, Mat22 b, Mat22 result ) : void
MulTransToOutUnsafe ( Mat22 r, Vec2 v, Vec2 result ) : void
Set ( Mat22 m ) : Mat22

Set as a copy of another matrix.

Set ( float exx, float col2x, float exy, float col2y ) : Mat22
Set ( Vec2 c1, Vec2 c2 ) : void

Set by column vectors.

Set ( float angle ) : void

Set as a matrix representing a rotation.

SetIdentity ( ) : void

Set as the identity matrix.

SetZero ( ) : void

Set as the zero matrix.

Solve ( Vec2 b ) : Vec2

Solve A * x = b where A = this matrix.

SolveToOut ( Vec2 b, Vec2 result ) : void
ToString ( ) : String

Convert the matrix to printable format.

Method Details

Abs() public méthode

Return the matrix composed of the absolute values of all elements. djm: fixed double allocation
public Abs ( ) : Mat22
Résultat Mat22

Abs() public static méthode

Return the matrix composed of the absolute values of all elements.
public static Abs ( Mat22 r ) : Mat22
r Mat22
Résultat Mat22

AbsLocal() public méthode

public AbsLocal ( ) : void
Résultat void

AbsToOut() public static méthode

public static AbsToOut ( Mat22 r, Mat22 result ) : void
r Mat22
result Mat22
Résultat void

Add() public méthode

Add this matrix to B, return the result.
public Add ( Mat22 b ) : Mat22
b Mat22
Résultat Mat22

AddLocal() public méthode

Add B to this matrix locally.
public AddLocal ( Mat22 b ) : Mat22
b Mat22
Résultat Mat22

Clone() public méthode

Return a clone of this matrix. djm fixed double allocation
public Clone ( ) : Mat22
Résultat Mat22

CreateRotationalTransform() public static méthode

public static CreateRotationalTransform ( float angle ) : Mat22
angle float
Résultat Mat22

CreateRotationalTransform() public static méthode

public static CreateRotationalTransform ( float angle, Mat22 result ) : void
angle float
result Mat22
Résultat void

CreateScaleTransform() public static méthode

public static CreateScaleTransform ( float scale ) : Mat22
scale float
Résultat Mat22

CreateScaleTransform() public static méthode

public static CreateScaleTransform ( float scale, Mat22 result ) : void
scale float
result Mat22
Résultat void

Equals() public méthode

public Equals ( Object obj ) : bool
obj Object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

Invert() public méthode

Returns the inverted Mat22 - does NOT invert the matrix locally!
public Invert ( ) : Mat22
Résultat Mat22

InvertLocal() public méthode

public InvertLocal ( ) : Mat22
Résultat Mat22

InvertToOut() public méthode

public InvertToOut ( Mat22 result ) : void
result Mat22
Résultat void

Mat22() public méthode

Construct zero matrix. Note: this is NOT an identity matrix! djm fixed double allocation problem
public Mat22 ( ) : System
Résultat System

Mat22() public méthode

Create a matrix with given vectors as columns.
public Mat22 ( Vec2 c1, Vec2 c2 ) : System
c1 Vec2 Column 1 of matrix
c2 Vec2 Column 2 of matrix
Résultat System

Mat22() public méthode

Create a matrix from four floats.
public Mat22 ( float exx, float col2x, float exy, float col2y ) : System
exx float
col2x float
exy float
col2y float
Résultat System

Mul() public méthode

Multiply another matrix by this one (this one on left). djm optimized
public Mul ( Mat22 r ) : Mat22
r Mat22
Résultat Mat22

Mul() public static méthode

public static Mul ( Mat22 a, Mat22 b ) : Mat22
a Mat22
b Mat22
Résultat Mat22

Mul() public static méthode

public static Mul ( Mat22 r, Vec2 v ) : Vec2
r Mat22
v Vec2
Résultat Vec2

Mul() public méthode

Multiply a vector by this matrix.
public Mul ( Vec2 v ) : Vec2
v Vec2 Vector to multiply by matrix.
Résultat Vec2

MulLocal() public méthode

public MulLocal ( Mat22 R ) : Mat22
R Mat22
Résultat Mat22

MulToOut() public méthode

public MulToOut ( Mat22 r, Mat22 result ) : void
r Mat22
result Mat22
Résultat void

MulToOut() public static méthode

public static MulToOut ( Mat22 a, Mat22 b, Mat22 result ) : void
a Mat22
b Mat22
result Mat22
Résultat void

MulToOut() public static méthode

public static MulToOut ( Mat22 r, Vec2 v, Vec2 result ) : void
r Mat22
v Vec2
result Vec2
Résultat void

MulToOut() public méthode

public MulToOut ( Vec2 v, Vec2 result ) : void
v Vec2
result Vec2
Résultat void

MulToOutUnsafe() public méthode

public MulToOutUnsafe ( Mat22 r, Mat22 result ) : void
r Mat22
result Mat22
Résultat void

MulToOutUnsafe() public static méthode

public static MulToOutUnsafe ( Mat22 a, Mat22 b, Mat22 result ) : void
a Mat22
b Mat22
result Mat22
Résultat void

MulToOutUnsafe() public static méthode

public static MulToOutUnsafe ( Mat22 r, Vec2 v, Vec2 result ) : void
r Mat22
v Vec2
result Vec2
Résultat void

MulToOutUnsafe() public méthode

public MulToOutUnsafe ( Vec2 v, Vec2 result ) : void
v Vec2
result Vec2
Résultat void

MulTrans() public méthode

Multiply another matrix by the transpose of this one (transpose of this one on left). djm: optimized
public MulTrans ( Mat22 b ) : Mat22
b Mat22
Résultat Mat22

MulTrans() public static méthode

public static MulTrans ( Mat22 a, Mat22 b ) : Mat22
a Mat22
b Mat22
Résultat Mat22

MulTrans() public static méthode

public static MulTrans ( Mat22 r, Vec2 v ) : Vec2
r Mat22
v Vec2
Résultat Vec2

MulTrans() public méthode

Multiply a vector by the transpose of this matrix.
public MulTrans ( Vec2 v ) : Vec2
v Vec2
Résultat Vec2

MulTransLocal() public méthode

public MulTransLocal ( Mat22 b ) : Mat22
b Mat22
Résultat Mat22

MulTransToOut() public méthode

public MulTransToOut ( Mat22 b, Mat22 result ) : void
b Mat22
result Mat22
Résultat void

MulTransToOut() public static méthode

public static MulTransToOut ( Mat22 a, Mat22 b, Mat22 result ) : void
a Mat22
b Mat22
result Mat22
Résultat void

MulTransToOut() public static méthode

public static MulTransToOut ( Mat22 r, Vec2 v, Vec2 result ) : void
r Mat22
v Vec2
result Vec2
Résultat void

MulTransToOut() public méthode

public MulTransToOut ( Vec2 v, Vec2 result ) : void
v Vec2
result Vec2
Résultat void

MulTransToOutUnsafe() public méthode

public MulTransToOutUnsafe ( Mat22 b, Mat22 result ) : void
b Mat22
result Mat22
Résultat void

MulTransToOutUnsafe() public static méthode

public static MulTransToOutUnsafe ( Mat22 a, Mat22 b, Mat22 result ) : void
a Mat22
b Mat22
result Mat22
Résultat void

MulTransToOutUnsafe() public static méthode

public static MulTransToOutUnsafe ( Mat22 r, Vec2 v, Vec2 result ) : void
r Mat22
v Vec2
result Vec2
Résultat void

Set() public méthode

Set as a copy of another matrix.
public Set ( Mat22 m ) : Mat22
m Mat22 Matrix to copy
Résultat Mat22

Set() public méthode

public Set ( float exx, float col2x, float exy, float col2y ) : Mat22
exx float
col2x float
exy float
col2y float
Résultat Mat22

Set() public méthode

Set by column vectors.
public Set ( Vec2 c1, Vec2 c2 ) : void
c1 Vec2 Column 1
c2 Vec2 Column 2
Résultat void

Set() public méthode

Set as a matrix representing a rotation.
public Set ( float angle ) : void
angle float Rotation (in radians) that matrix represents.
Résultat void

SetIdentity() public méthode

Set as the identity matrix.
public SetIdentity ( ) : void
Résultat void

SetZero() public méthode

Set as the zero matrix.
public SetZero ( ) : void
Résultat void

Solve() public méthode

Solve A * x = b where A = this matrix.
public Solve ( Vec2 b ) : Vec2
b Vec2
Résultat Vec2

SolveToOut() public méthode

public SolveToOut ( Vec2 b, Vec2 result ) : void
b Vec2
result Vec2
Résultat void

ToString() public méthode

Convert the matrix to printable format.
public ToString ( ) : String
Résultat String

Property Details

Ex public_oe property

public Vec2,Box2D.Common Ex
Résultat Vec2

Ey public_oe property

public Vec2,Box2D.Common Ey
Résultat Vec2