Click or drag to resize

MathRoutinesAngleDiffDeg Method

LightningChart .NET Help
Solve smallest absolute difference between two angles in degrees. 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 AngleDiffRad(Double, Double) for radians.

Namespace:  Arction.WinForms.Charting
Assembly:  Arction.WinForms.Charting.LightningChart (in Arction.WinForms.Charting.LightningChart.dll) Version: 10.3.1
Syntax
public static double AngleDiffDeg(
	double angleDeg1,
	double angleDeg2
)

Parameters

angleDeg1
Type: SystemDouble
One of the angles to calculate the difference between in degrees. Order of parameter does not matter.
angleDeg2
Type: SystemDouble
One of the angles to calculate the difference between in degrees. Order of parameter does not matter.

Return Value

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