Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 3.29 KB

File metadata and controls

35 lines (24 loc) · 3.29 KB

//astronomy/io.github.cosinekitty.astronomy/RotationMatrix

RotationMatrix

class RotationMatrix(rot: Array<DoubleArray>)

A rotation matrix that can be used to transform one coordinate system to another.

Constructors

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>)

Types

Name Summary
Companion
object Companion

Functions

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.

Properties

Name Summary
rot
val rot: Array<DoubleArray>
A 3x3 array of numbers to initialize the rotation matrix.