org.jbox2d.common
Class Mat33

java.lang.Object
  extended by org.jbox2d.common.Mat33
All Implemented Interfaces:
Serializable

public class Mat33
extends Object
implements Serializable

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

Author:
Daniel Murphy
See Also:
Serialized Form

Field Summary
 Vec3 col1
           
 Vec3 col2
           
 Vec3 col3
           
static Mat33 IDENTITY
           
 
Constructor Summary
Mat33()
           
Mat33(Vec3 argCol1, Vec3 argCol2, Vec3 argCol3)
           
 
Method Summary
static Vec3 mul(Mat33 A, Vec3 v)
           
static void mulToOut(Mat33 A, Vec3 v, Vec3 out)
           
 void setZero()
           
 Vec2 solve22(Vec2 b)
          Solve A * x = b, where b is a column vector.
 void solve22ToOut(Vec2 b, Vec2 out)
          Solve A * x = b, where b is a column vector.
 Vec3 solve33(Vec3 b)
          Solve A * x = b, where b is a column vector.
 void solve33ToOut(Vec3 b, Vec3 out)
          Solve A * x = b, where b is a column vector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDENTITY

public static final Mat33 IDENTITY

col1

public final Vec3 col1

col2

public final Vec3 col2

col3

public final Vec3 col3
Constructor Detail

Mat33

public Mat33()

Mat33

public Mat33(Vec3 argCol1,
             Vec3 argCol2,
             Vec3 argCol3)
Method Detail

setZero

public void setZero()

mul

public static final Vec3 mul(Mat33 A,
                             Vec3 v)

mulToOut

public static final void mulToOut(Mat33 A,
                                  Vec3 v,
                                  Vec3 out)

solve22

public final Vec2 solve22(Vec2 b)
Solve A * x = b, where b is a column vector. This is more efficient than computing the inverse in one-shot cases.

Parameters:
b -
Returns:

solve22ToOut

public final void solve22ToOut(Vec2 b,
                               Vec2 out)
Solve A * x = b, where b is a column vector. This is more efficient than computing the inverse in one-shot cases.

Parameters:
b -

solve33

public final Vec3 solve33(Vec3 b)
Solve A * x = b, where b is a column vector. This is more efficient than computing the inverse in one-shot cases.

Parameters:
b -
Returns:

solve33ToOut

public final void solve33ToOut(Vec3 b,
                               Vec3 out)
Solve A * x = b, where b is a column vector. This is more efficient than computing the inverse in one-shot cases.

Parameters:
b -
out - the result


Copyright © 2012. All Rights Reserved.