rotationMatrixFromPositionVelocity

fun rotationMatrixFromPositionVelocity(position: Cartesian3, velocity: Cartesian3, ellipsoid: Ellipsoid? = definedExternally, result: Matrix3? = definedExternally): Matrix3(source)

Transform a position and velocity to a rotation matrix.

Return

The modified result parameter or a new Matrix3 instance if none was provided.

Parameters

position

The position to transform.

velocity

The velocity vector to transform.

ellipsoid

The ellipsoid whose fixed frame is used in the transformation. Default value - Ellipsoid.default

result

The object onto which to store the result.

See also