public static float GetAngleAtSliceIndex(
int slices,
int index
)
Public Shared Function GetAngleAtSliceIndex (
slices As Integer,
index As Integer
) As Single
No code example is currently available or this language may not be supported.
This method will return correct values for negative indices and indices greater than the number of slices defined, to support cases where a scenario includes multiple turns in either direction.
If your case might include a multi-turn scenario, consider calling Trig.NormalizeRad on the result of this method to maintain an angle less than a single turn.