SofaRz Method

Rotates a 3x3 rotation matrix about the Z-axis by a specified angle.

Definition

Namespace: ASCOM.Tools
Assembly: ASCOM.AstrometryTools (in ASCOM.AstrometryTools.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public static void Rz(
	double psi,
	double[] r
)

Parameters

psi  Double
The angle of rotation, in radians, to apply about the Z-axis.
r  Double
A 9-element array representing the 3x3 rotation matrix to be rotated. The matrix is modified in place.

Remarks

The input array must contain exactly 9 elements, representing the matrix in row-major order. The method overwrites the contents of the array with the rotated matrix. This function is a wrapper for the IAU SOFA library's iauRz routine.

Exceptions

ArgumentNullExceptionThrown if any array parameter is null.
ArgumentExceptionThrown if any array parameter has incorrect length.

Version Information

.NET Standard

Supported in: 2.0

See Also