//astronomy/io.github.cosinekitty.astronomy/RotationMatrix
class RotationMatrix(rot: Array<DoubleArray>)
A rotation matrix that can be used to transform one coordinate system to another.
RotationMatrix fun RotationMatrix(a00: Double, a01: Double, a02: Double, a10: Double, a11: Double, a12: Double, a20: Double, a21: Double, a22: Double) |
|
RotationMatrix fun RotationMatrix(rot: Array<DoubleArray>) |
Name | Summary |
---|---|
Companion object Companion |
Name | Summary |
---|---|
combine infix fun combine(other: RotationMatrix): RotationMatrix Creates a rotation based on applying one rotation followed by another. |
|
inverse fun inverse(): RotationMatrix Calculates the inverse of a rotation matrix. |
|
pivot fun pivot(axis: Int, angle: Double): RotationMatrix Re-orients the rotation matrix by pivoting it by an angle around one of its axes. |
|
rotate fun rotate(state: StateVector): StateVector Applies a rotation to a state vector, yielding a rotated state vector. [jvm] fun rotate(vec: Vector): Vector Applies a rotation to a vector, yielding a rotated vector. |
Name | Summary |
---|---|
rot val rot: Array<DoubleArray> A 3x3 array of numbers to initialize the rotation matrix. |