Package javax.vecmath
Class Matrix4f
java.lang.Object
javax.vecmath.Matrix4f
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class Matrix4f
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Matrix4f()
Matrix4f(float[] v)
Matrix4f(float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23, float m30, float m31, float m32, float m33)
Matrix4f(Matrix3f m1, Vector3f t1, float s)
Matrix4f(Matrix4d m1)
Matrix4f(Matrix4f m1)
Matrix4f(Quat4f q1, Vector3f t1, float s)
-
Method Summary
Modifier and Type Method Description void
add(float scalar)
void
add(float scalar, Matrix4f m1)
void
add(Matrix4f m1)
void
add(Matrix4f m1, Matrix4f m2)
java.lang.Object
clone()
float
determinant()
boolean
epsilonEquals(Matrix4f m1, float epsilon)
boolean
equals(java.lang.Object t1)
boolean
equals(Matrix4f m1)
void
get(Matrix3d m1)
void
get(Matrix3f m1)
float
get(Matrix3f m1, Vector3f t1)
void
get(Quat4f q1)
void
get(Vector3f trans)
void
getColumn(int column, float[] v)
void
getColumn(int column, Vector4f v)
float
getElement(int row, int column)
float
getM00()
float
getM01()
float
getM02()
float
getM03()
float
getM10()
float
getM11()
float
getM12()
float
getM13()
float
getM20()
float
getM21()
float
getM22()
float
getM23()
float
getM30()
float
getM31()
float
getM32()
float
getM33()
void
getRotationScale(Matrix3f m1)
void
getRow(int row, float[] v)
void
getRow(int row, Vector4f v)
float
getScale()
int
hashCode()
void
invert()
void
invert(Matrix4f m1)
void
mul(float scalar)
void
mul(float scalar, Matrix4f m1)
void
mul(Matrix4f m1)
void
mul(Matrix4f m1, Matrix4f m2)
void
mulTransposeBoth(Matrix4f m1, Matrix4f m2)
void
mulTransposeLeft(Matrix4f m1, Matrix4f m2)
void
mulTransposeRight(Matrix4f m1, Matrix4f m2)
void
negate()
void
negate(Matrix4f m1)
void
rotX(float angle)
void
rotY(float angle)
void
rotZ(float angle)
void
set(float scale)
void
set(float[] m)
void
set(float scale, Vector3f t1)
void
set(AxisAngle4d a1)
void
set(AxisAngle4f a1)
void
set(Matrix3d m1)
void
set(Matrix3d m1, Vector3d t1, double scale)
void
set(Matrix3f m1)
void
set(Matrix3f m1, Vector3f t1, float scale)
void
set(Matrix4d m1)
void
set(Matrix4f m1)
void
set(Quat4d q1)
void
set(Quat4d q1, Vector3d t1, double s)
void
set(Quat4f q1)
void
set(Quat4f q1, Vector3f t1, float s)
void
set(Vector3f v1)
void
set(Vector3f t1, float scale)
void
setColumn(int column, float[] v)
void
setColumn(int column, float x, float y, float z, float w)
void
setColumn(int column, Vector4f v)
void
setElement(int row, int column, float value)
void
setIdentity()
void
setM00(float m00)
void
setM01(float m01)
void
setM02(float m02)
void
setM03(float m03)
void
setM10(float m10)
void
setM11(float m11)
void
setM12(float m12)
void
setM13(float m13)
void
setM20(float m20)
void
setM21(float m21)
void
setM22(float m22)
void
setM23(float m23)
void
setM30(float m30)
void
setM31(float m31)
void
setM32(float m32)
void
setM33(float m33)
void
setRotation(AxisAngle4f a1)
void
setRotation(Matrix3d m1)
void
setRotation(Matrix3f m1)
void
setRotation(Quat4d q1)
void
setRotation(Quat4f q1)
void
setRotationScale(Matrix3f m1)
void
setRow(int row, float[] v)
void
setRow(int row, float x, float y, float z, float w)
void
setRow(int row, Vector4f v)
void
setScale(float scale)
void
setTranslation(Vector3f trans)
void
setZero()
void
sub(Matrix4f m1)
void
sub(Matrix4f m1, Matrix4f m2)
java.lang.String
toString()
void
transform(Point3f point)
void
transform(Point3f point, Point3f pointOut)
void
transform(Tuple4f vec)
void
transform(Tuple4f vec, Tuple4f vecOut)
void
transform(Vector3f normal)
void
transform(Vector3f normal, Vector3f normalOut)
void
transpose()
void
transpose(Matrix4f m1)
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
m00
public float m00 -
m01
public float m01 -
m02
public float m02 -
m03
public float m03 -
m10
public float m10 -
m11
public float m11 -
m12
public float m12 -
m13
public float m13 -
m20
public float m20 -
m21
public float m21 -
m22
public float m22 -
m23
public float m23 -
m30
public float m30 -
m31
public float m31 -
m32
public float m32 -
m33
public float m33
-
-
Constructor Details
-
Matrix4f
public Matrix4f(float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23, float m30, float m31, float m32, float m33) -
Matrix4f
public Matrix4f(float[] v) -
Matrix4f
-
Matrix4f
-
Matrix4f
-
Matrix4f
-
Matrix4f
public Matrix4f()
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setIdentity
public final void setIdentity() -
setElement
public final void setElement(int row, int column, float value) -
getElement
public final float getElement(int row, int column) -
getRow
-
getRow
public final void getRow(int row, float[] v) -
getColumn
-
getColumn
public final void getColumn(int column, float[] v) -
setScale
public final void setScale(float scale) -
get
-
get
-
get
-
get
-
get
-
getRotationScale
-
getScale
public final float getScale() -
setRotationScale
-
setRow
public final void setRow(int row, float x, float y, float z, float w) -
setRow
-
setRow
public final void setRow(int row, float[] v) -
setColumn
public final void setColumn(int column, float x, float y, float z, float w) -
setColumn
-
setColumn
public final void setColumn(int column, float[] v) -
add
public final void add(float scalar) -
add
-
add
-
add
-
sub
-
sub
-
transpose
public final void transpose() -
transpose
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
invert
-
invert
public final void invert() -
determinant
public final float determinant() -
set
-
set
-
set
public final void set(float scale) -
set
public final void set(float[] m) -
set
-
set
-
set
-
set
-
set
-
setTranslation
-
rotX
public final void rotX(float angle) -
rotY
public final void rotY(float angle) -
rotZ
public final void rotZ(float angle) -
mul
public final void mul(float scalar) -
mul
-
mul
-
mul
-
mulTransposeBoth
-
mulTransposeRight
-
mulTransposeLeft
-
equals
-
equals
public boolean equals(java.lang.Object t1)- Overrides:
equals
in classjava.lang.Object
-
epsilonEquals
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
transform
-
transform
-
transform
-
transform
-
transform
-
transform
-
setRotation
-
setRotation
-
setRotation
-
setRotation
-
setRotation
-
setZero
public final void setZero() -
negate
public final void negate() -
negate
-
clone
public java.lang.Object clone()- Overrides:
clone
in classjava.lang.Object
-
getM00
public final float getM00() -
setM00
public final void setM00(float m00) -
getM01
public final float getM01() -
setM01
public final void setM01(float m01) -
getM02
public final float getM02() -
setM02
public final void setM02(float m02) -
getM10
public final float getM10() -
setM10
public final void setM10(float m10) -
getM11
public final float getM11() -
setM11
public final void setM11(float m11) -
getM12
public final float getM12() -
setM12
public final void setM12(float m12) -
getM20
public final float getM20() -
setM20
public final void setM20(float m20) -
getM21
public final float getM21() -
setM21
public final void setM21(float m21) -
getM22
public final float getM22() -
setM22
public final void setM22(float m22) -
getM03
public final float getM03() -
setM03
public final void setM03(float m03) -
getM13
public final float getM13() -
setM13
public final void setM13(float m13) -
getM23
public final float getM23() -
setM23
public final void setM23(float m23) -
getM30
public final float getM30() -
setM30
public final void setM30(float m30) -
getM31
public final float getM31() -
setM31
public final void setM31(float m31) -
getM32
public final float getM32() -
setM32
public final void setM32(float m32) -
getM33
public final float getM33() -
setM33
public final void setM33(float m33)
-