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