public class Angle
Various utilities for working with angles.
Modifier and Type | Field and Description |
---|---|
static Angle |
INSTANCE
Various utilities for working with angles.
|
Modifier and Type | Method and Description |
---|---|
static double |
norm(double angle)
Returns
angle clamped to [0, 2pi] . |
static double |
normDelta(double angleDelta)
Returns
angleDelta clamped to [-pi, pi] . |
public static Angle INSTANCE
Various utilities for working with angles.
@JvmStatic public static double norm(double angle)
Returns angle
clamped to [0, 2pi]
.
angle
- angle measure in radiansangle
@JvmStatic public static double normDelta(double angleDelta)
Returns angleDelta
clamped to [-pi, pi]
.
angleDelta
- angle delta in radiansangleDelta