@Equality public abstract class Rotation extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static Rotation |
IDENTITY |
Identity rotation; the rotate method is a no-op.
|
Modifier | Constructor | Description |
---|---|---|
protected |
Rotation() |
Protected no-arg constructor of abstract class.
|
Modifier and Type | Method | Description |
---|---|---|
static Rotation |
createRotation(SkySys inSys,
SkySys outSys) |
Returns a rotation instance that can transform between two submitted
sky systems.
|
abstract double[] |
getMatrix() |
Returns the 9-element matrix defining this rotation.
|
abstract Rotation |
invert() |
Returns the inverse of this rotation.
|
static boolean |
isIdentityRotation(SkySys inSys,
SkySys outSys) |
Indicates whether the rotation between two sky systems is known
to be an identity (no-op) transformation.
|
abstract void |
rotate(double[] r3) |
Rotates a 3-vector in place.
|
public static Rotation IDENTITY
public abstract void rotate(double[] r3)
r3
- 3-element unit vector, changed on outputpublic abstract Rotation invert()
public abstract double[] getMatrix()
public static boolean isIdentityRotation(SkySys inSys, SkySys outSys)
inSys
- input sky system; may be nulloutSys
- output sky system; may be nullpublic static Rotation createRotation(SkySys inSys, SkySys outSys)
inSys
- input sky system; may be nulloutSys
- output sky system; may be nullCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.