Package org.jbox2d.common
Class Mat33
java.lang.Object
org.jbox2d.common.Mat33
- All Implemented Interfaces:
Serializable
A 3-by-3 matrix. Stored in column-major order.
- Author:
- Daniel Murphy
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidvoidinthashCode()static Vec3Multiply a matrix times a vector.static Vec2static voidmul22ToOut(Mat33 A, Vec2 v, Vec2 out) static voidmul22ToOutUnsafe(Mat33 A, Vec2 v, Vec2 out) static voidstatic voidmulToOutUnsafe(Mat33 A, Vec3 v, Vec3 out) voidset(float exx, float exy, float exz, float eyx, float eyy, float eyz, float ezx, float ezy, float ezz) voidvoidstatic voidsetScaleTransform(float scale, Mat33 out) voidsetZero()final Vec2Solve A * x = b, where b is a column vector.final voidsolve22ToOut(Vec2 b, Vec2 out) Solve A * x = b, where b is a column vector.final Vec3Solve A * x = b, where b is a column vector.final voidsolve33ToOut(Vec3 b, Vec3 out) Solve A * x = b, where b is a column vector.
-
Field Details
-
IDENTITY
-
ex
-
ey
-
ez
-
-
Constructor Details
-
Mat33
public Mat33() -
Mat33
public Mat33(float exx, float exy, float exz, float eyx, float eyy, float eyz, float ezx, float ezy, float ezz) -
Mat33
-
-
Method Details
-
setZero
public void setZero() -
set
public void set(float exx, float exy, float exz, float eyx, float eyy, float eyz, float ezx, float ezy, float ezz) -
set
-
setIdentity
public void setIdentity() -
mul
Multiply a matrix times a vector. -
mul22
-
mul22ToOut
-
mul22ToOutUnsafe
-
mulToOut
-
mulToOutUnsafe
-
solve22
Solve A * x = b, where b is a column vector. This is more efficient than computing the inverse in one-shot cases. -
solve22ToOut
Solve A * x = b, where b is a column vector. This is more efficient than computing the inverse in one-shot cases. -
solve33
Solve A * x = b, where b is a column vector. This is more efficient than computing the inverse in one-shot cases. -
solve33ToOut
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.
-
getInverse22
-
getSymInverse33
-
setScaleTransform
-
hashCode
public int hashCode() -
equals
-