Package javax.vecmath
Class Matrix3d
java.lang.Object
javax.vecmath.Matrix3d
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class Matrix3d
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
add(double scalar)
void
add(double scalar, Matrix3d m1)
void
add(Matrix3d m1)
void
add(Matrix3d m1, Matrix3d m2)
java.lang.Object
clone()
double
determinant()
boolean
epsilonEquals(Matrix3d m1, double epsilon)
boolean
equals(java.lang.Object t1)
boolean
equals(Matrix3d m1)
void
getColumn(int column, double[] v)
void
getColumn(int column, Vector3d v)
double
getElement(int row, int column)
double
getM00()
double
getM01()
double
getM02()
double
getM10()
double
getM11()
double
getM12()
double
getM20()
double
getM21()
double
getM22()
void
getRow(int row, double[] v)
void
getRow(int row, Vector3d v)
double
getScale()
int
hashCode()
void
invert()
void
invert(Matrix3d m1)
void
mul(double scalar)
void
mul(double scalar, Matrix3d m1)
void
mul(Matrix3d m1)
void
mul(Matrix3d m1, Matrix3d m2)
void
mulNormalize(Matrix3d m1)
void
mulNormalize(Matrix3d m1, Matrix3d m2)
void
mulTransposeBoth(Matrix3d m1, Matrix3d m2)
void
mulTransposeLeft(Matrix3d m1, Matrix3d m2)
void
mulTransposeRight(Matrix3d m1, Matrix3d m2)
void
negate()
void
negate(Matrix3d m1)
void
normalize()
void
normalize(Matrix3d m1)
void
normalizeCP()
void
normalizeCP(Matrix3d m1)
void
rotX(double angle)
void
rotY(double angle)
void
rotZ(double angle)
void
set(double scale)
void
set(double[] m)
void
set(AxisAngle4d a1)
void
set(AxisAngle4f a1)
void
set(Matrix3d m1)
void
set(Matrix3f m1)
void
set(Quat4d q1)
void
set(Quat4f q1)
void
setColumn(int column, double[] v)
void
setColumn(int column, double x, double y, double z)
void
setColumn(int column, Vector3d v)
void
setElement(int row, int column, double value)
void
setIdentity()
void
setM00(double m00)
void
setM01(double m01)
void
setM02(double m02)
void
setM10(double m10)
void
setM11(double m11)
void
setM12(double m12)
void
setM20(double m20)
void
setM21(double m21)
void
setM22(double m22)
void
setRow(int row, double[] v)
void
setRow(int row, double x, double y, double z)
void
setRow(int row, Vector3d v)
void
setScale(double scale)
void
setZero()
void
sub(Matrix3d m1)
void
sub(Matrix3d m1, Matrix3d m2)
java.lang.String
toString()
void
transform(Tuple3d t)
void
transform(Tuple3d t, Tuple3d result)
void
transpose()
void
transpose(Matrix3d 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 -
m10
public double m10 -
m11
public double m11 -
m12
public double m12 -
m20
public double m20 -
m21
public double m21 -
m22
public double m22
-
-
Constructor Details
-
Matrix3d
public Matrix3d(double m00, double m01, double m02, double m10, double m11, double m12, double m20, double m21, double m22) -
Matrix3d
public Matrix3d(double[] v) -
Matrix3d
-
Matrix3d
-
Matrix3d
public Matrix3d()
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setIdentity
public final void setIdentity() -
setScale
public final void setScale(double scale) -
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) -
setRow
public final void setRow(int row, double x, double y, double z) -
setRow
-
setRow
public final void setRow(int row, double[] v) -
setColumn
public final void setColumn(int column, double x, double y, double z) -
setColumn
-
setColumn
public final void setColumn(int column, double[] v) -
getScale
public final double getScale() -
add
public final void add(double scalar) -
add
-
add
-
add
-
sub
-
sub
-
transpose
public final void transpose() -
transpose
-
set
-
set
-
set
-
set
-
set
-
set
-
set
public final void set(double[] m) -
invert
-
invert
public final void invert() -
determinant
public final double determinant() -
set
public final void set(double scale) -
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
-
mulNormalize
-
mulNormalize
-
mulTransposeBoth
-
mulTransposeRight
-
mulTransposeLeft
-
normalize
public final void normalize() -
normalize
-
normalizeCP
public final void normalizeCP() -
normalizeCP
-
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
-
setZero
public final void setZero() -
negate
public final void negate() -
negate
-
transform
-
transform
-
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)
-