Click or drag to resize

MathRoutinesAngleDiffRad Method

LightningChart .NET Help
Solve smallest absolute difference between two angles in radians. This takes in account the periodic nature of the values, meaning that full circles do not affect the difference.

Useful in comparing the difference of angles, e.g. on testing if angles are the same.

Note that the type of angle unit affects the result. Use AngleDiffDeg(Double, Double) for degrees and examples.

Namespace:  Arction.WinForms.Charting
Assembly:  Arction.WinForms.Charting.LightningChart (in Arction.WinForms.Charting.LightningChart.dll) Version: 10.3.1
Syntax
public static double AngleDiffRad(
	double angleRad1,
	double angleRad2
)

Parameters

angleRad1
Type: SystemDouble
One of the angles to calculate the difference between in radians. Order of parameter does not matter.
angleRad2
Type: SystemDouble
One of the angles to calculate the difference between in radians. Order of parameter does not matter.

Return Value

Type: Double
Difference of provided angles in radians. Always positive.
See Also