SofaRx Method

Applies a rotation around the X-axis to a 3×3 rotation matrix by a specified angle, in radians.

Definition

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

Parameters

phi  Double
The angle of rotation, in radians, to apply about the X-axis.
r  Double
A 9-element array that receives the resulting 3×3 rotation matrix in row-major order. The array must not be null.

Remarks

This method is a P/Invoke wrapper for the SOFA library function 'iauRx'. The resulting matrix represents a right-handed rotation. The input array must have a length of at least 9 elements. No input validation is performed; passing an array of incorrect length or a null reference may result in undefined behavior.

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