//astronomy/io.github.cosinekitty.astronomy/RotationMatrix/rotate
fun rotate(vec: Vector): Vector
Applies a rotation to a vector, yielding a rotated vector.
This function transforms a vector in one orientation to a vector in another orientation.
vec | The vector whose orientation is to be changed. |
fun rotate(state: StateVector): StateVector
Applies a rotation to a state vector, yielding a rotated state vector.
This function transforms a state vector in one orientation to a state vector in another orientation. The resulting state vector has both position and velocity reoriented.
state | The state vector whose orientation is to be changed. The value of state is not changed; the return value is a new state vector object. |