Package org.jbox2d.common
Class Mat33
java.lang.Object
org.jbox2d.common.Mat33
- All Implemented Interfaces:
java.io.Serializable
public class Mat33
extends java.lang.Object
implements java.io.Serializable
A 3-by-3 matrix. Stored in column-major order.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
equals
(java.lang.Object obj) void
void
int
hashCode()
static final Vec3
static final Vec2
static final void
mul22ToOut
(Mat33 A, Vec2 v, Vec2 out) static final void
mul22ToOutUnsafe
(Mat33 A, Vec2 v, Vec2 out) static final void
static final void
mulToOutUnsafe
(Mat33 A, Vec3 v, Vec3 out) void
setZero()
final Vec2
Solve A * x = b, where b is a column vector.final void
solve22ToOut
(Vec2 b, Vec2 out) Solve A * x = b, where b is a column vector.final Vec3
Solve A * x = b, where b is a column vector.final void
solve33ToOut
(Vec3 b, Vec3 out) Solve A * x = b, where b is a column vector.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
IDENTITY
-
ex
-
ey
-
ez
-
-
Constructor Details
-
Mat33
public Mat33() -
Mat33
-
-
Method Details
-
setZero
public void setZero() -
mul
-
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.- Parameters:
b
-- Returns:
-
solve22ToOut
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
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
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
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj) - Overrides:
equals
in classjava.lang.Object
-