Method ShortestAngleDistance
ShortestAngleDistance(double, double, double, double)
Finds the smallest angle between two angles.
Declaration
public static double ShortestAngleDistance(double start, double end, double halfMax, double max)
Parameters
| Type | Name | Description |
|---|---|---|
| double | start | The start value. |
| double | end | The end value. |
| double | halfMax | Half of the max angle. |
| double | max | The max angle value. |
Returns
| Type | Description |
|---|---|
| double | The angle distance between start and end. |
ShortestAngleDistance(float, float, float, float)
Finds the smallest angle between two angles.
Declaration
public static float ShortestAngleDistance(float start, float end, float halfMax, float max)
Parameters
| Type | Name | Description |
|---|---|---|
| float | start | The start value. |
| float | end | The end value. |
| float | halfMax | Half of the max angle. |
| float | max | The max angle value. |
Returns
| Type | Description |
|---|---|
| float | The angle distance between start and end. |