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