public class RotationMatrix2d extends Matrix2dBase
Matrix.Partition, Matrix.WriteFormat| Modifier and Type | Field and Description |
|---|---|
static RotationMatrix2d |
IDENTITY
Global identity rotation.
|
m00, m01, m10, m11INDEFINITE, 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, transposeadd, checkConsistency, set, set, set, setCCSValues, setColumn, setCRSValues, setRow, setSubMatrixcontainsNaN, 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, writeToFileequals, getClass, hashCode, notify, notifyAll, wait, wait, waitepsilonEquals, 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, writepublic 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 Matrix2dBasevr - result vectorv1 - vector to multiply bypublic boolean mulInverse(Vector2d vr)
mulInverse in class Matrix2dBasevr - vector to multiply by (in place)public boolean mulInverseTranspose(Vector2d vr, Vector2d v1)
mulInverseTranspose in class Matrix2dBasevr - result vectorv1 - vector to multiply bypublic boolean mulInverseTranspose(Vector2d vr)
mulInverseTranspose in class Matrix2dBasevr - vector to multiplypublic boolean invert()
Matrix2dBaseinvert in class Matrix2dBasepublic 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()
DenseMatrixBasesetRandom in class DenseMatrixBasepublic void setRandom(java.util.Random generator)
public RotationMatrix2d clone()
clone in interface Clonableclone in class Matrix2dBase