public class RotationMatrix2d extends Matrix2dBase
Matrix.Partition, Matrix.WriteFormat
Modifier and Type | Field and Description |
---|---|
static RotationMatrix2d |
IDENTITY
Global identity rotation.
|
m00, m01, m10, m11
INDEFINITE, POSITIVE_DEFINITE, SPD, SYMMETRIC
Constructor and Description |
---|
RotationMatrix2d() |
RotationMatrix2d(double ang) |
RotationMatrix2d(RotationMatrix2d R) |
Modifier and Type | Method and Description |
---|---|
RotationMatrix2d |
clone() |
double |
getAngle() |
void |
inverseTransform(Vector2d vr) |
void |
inverseTransform(Vector2d vr,
Vector2d v1) |
boolean |
invert()
Inverts this matrix in place, returning false if the matrix is detected to
be singular.
|
boolean |
invert(RotationMatrix2d r1) |
void |
mul(RotationMatrix2d r1) |
void |
mul(RotationMatrix2d r1,
RotationMatrix2d r2) |
void |
mulAngle(double ang) |
void |
mulInverse(RotationMatrix2d r1) |
boolean |
mulInverse(Vector2d vr)
Multiplies the column vector vr by the inverse of this matrix and places
the result back in vr.
|
boolean |
mulInverse(Vector2d vr,
Vector2d v1)
Multiplies the column vector v1 by the inverse of this matrix and places
the result in vr.
|
void |
mulInverseBoth(RotationMatrix2d r1,
RotationMatrix2d r2) |
void |
mulInverseLeft(RotationMatrix2d r1,
RotationMatrix2d r2) |
void |
mulInverseRight(RotationMatrix2d r1,
RotationMatrix2d r2) |
boolean |
mulInverseTranspose(Vector2d vr)
Multiplies vector vr by the inverse transpose of this matrix, in place.
|
boolean |
mulInverseTranspose(Vector2d vr,
Vector2d v1)
Multiplies the column vector v1 by the inverse transpose of this matrix
and places the result in vr.
|
void |
setAngle(double ang) |
void |
setRandom()
Sets the elements of this matrix to uniformly distributed random values in
the range -0.5 (inclusive) to 0.5 (exclusive).
|
void |
setRandom(java.util.Random generator) |
void |
transform(Vector2d vr) |
void |
transform(Vector2d vr,
Vector2d v1) |
colSize, determinant, epsilonEquals, equals, frobeniusNorm, get, get, getColumn, getColumn, getColumn, getRow, getRow, getRow, infinityNorm, mul, mul, mul, mulAdd, mulAdd, mulTranspose, mulTranspose, mulTransposeLeftAdd, mulTransposeRightAdd, negate, oneNorm, rowSize, set, set, set, set, set, setColumn, setColumn, setIdentity, setRow, setRow, transpose
add, checkConsistency, set, set, set, setCCSValues, setColumn, setCRSValues, setRow, setSubMatrix
containsNaN, epsilonEquals, equals, frobeniusNormSquared, get, getCCSIndices, getCCSIndices, getCCSIndices, getCCSValues, getCCSValues, getCCSValues, getColumn, getCRSIndices, getCRSIndices, getCRSIndices, getCRSValues, getCRSValues, getCRSValues, getDefaultFormat, getRow, getSize, getSubMatrix, hasNaN, idString, isFixedSize, isSymmetric, isWritable, maxNorm, mul, mul, mulAdd, mulAdd, mulAdd, mulTranspose, mulTranspose, mulTranspose, mulTransposeAdd, mulTransposeAdd, mulTransposeAdd, numNonZeroVals, numNonZeroVals, scan, scan, setCRSValues, setDefaultFormat, setSize, toString, toString, toString, trace, write, write, write, write, write, write, write, writeToFile
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
epsilonEquals, equals, frobeniusNormSquared, getCCSIndices, getCCSIndices, getCCSIndices, getCCSValues, getCCSValues, getCCSValues, getColumn, getCRSIndices, getCRSIndices, getCRSIndices, getCRSValues, getCRSValues, getCRSValues, getRow, getSize, getSubMatrix, isFixedSize, isSymmetric, maxNorm, mul, mul, mulAdd, mulAdd, mulAdd, mulTranspose, mulTranspose, mulTranspose, mulTransposeAdd, mulTransposeAdd, mulTransposeAdd, numNonZeroVals, numNonZeroVals, scan, setSize, toString, toString, trace, write, write, write
public static final RotationMatrix2d IDENTITY
public RotationMatrix2d()
public RotationMatrix2d(double ang)
public RotationMatrix2d(RotationMatrix2d R)
public void mul(RotationMatrix2d r1)
public void mul(RotationMatrix2d r1, RotationMatrix2d r2)
public void mulInverse(RotationMatrix2d r1)
public void mulInverseLeft(RotationMatrix2d r1, RotationMatrix2d r2)
public void mulInverseRight(RotationMatrix2d r1, RotationMatrix2d r2)
public void mulInverseBoth(RotationMatrix2d r1, RotationMatrix2d r2)
public boolean mulInverse(Vector2d vr, Vector2d v1)
mulInverse
in class Matrix2dBase
vr
- result vectorv1
- vector to multiply bypublic boolean mulInverse(Vector2d vr)
mulInverse
in class Matrix2dBase
vr
- vector to multiply by (in place)public boolean mulInverseTranspose(Vector2d vr, Vector2d v1)
mulInverseTranspose
in class Matrix2dBase
vr
- result vectorv1
- vector to multiply bypublic boolean mulInverseTranspose(Vector2d vr)
mulInverseTranspose
in class Matrix2dBase
vr
- vector to multiplypublic boolean invert()
Matrix2dBase
invert
in class Matrix2dBase
public boolean invert(RotationMatrix2d r1)
public void transform(Vector2d vr)
public void inverseTransform(Vector2d vr)
public void setAngle(double ang)
public void mulAngle(double ang)
public double getAngle()
public void setRandom()
DenseMatrixBase
setRandom
in class DenseMatrixBase
public void setRandom(java.util.Random generator)
public RotationMatrix2d clone()
clone
in interface Clonable
clone
in class Matrix2dBase