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.Wpf.ChartingMVVM
Assembly:
Arction.Wpf.ChartingMVVM.LightningChart (in Arction.Wpf.ChartingMVVM.LightningChart.dll) Version: 10.3.1
Syntaxpublic static double AngleDiffDeg(
double angleDeg1,
double angleDeg2
)
Public Shared Function AngleDiffDeg (
angleDeg1 As Double,
angleDeg2 As Double
) As Double
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:
DoubleDifference of provided angles in degrees. Always positive.
See Also