SofaCp Method

Copies the contents of a 3-element position vector to another 3-element vector.

Definition

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

Parameters

p  Double
The source array containing the position vector to copy. Must be a double array of length 3.
c  Double
The destination array that receives the copied vector. Must be a double array of length 3.

Remarks

Both arrays must have a length of 3. The method overwrites the contents of the destination array with the values from the source array. This method is a direct wrapper for the SOFA library function 'iauCp'.

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