Description Usage Arguments Details Value
Resolves discontinuity artefacts when calculating angle differences by always selecting the shortest of the two rotations.
1 | anglefix(a, deg = F)
|
a |
an angle in rad from -2pi (anticlockwise) to +2pi (clockwise) |
deg |
boolean if you want to enter it in degrees. I don't think it works yet |
Takes an angle (in rad: from -2pi to 2pi; or in degrees: from -360 to 360) and if it's larger than half a circle replaces it with the shortest distance between the same points (in the opposite direction).
I don't think the degree version quite works yet.
An angle that is always between -pi and pi
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.