public static final class Angle.Rad extends Angle
Angle.Deg, Angle.Rad, Angle.Turn| Modifier and Type | Field and Description |
|---|---|
static Angle.Rad |
PI
π.
|
static Angle.Rad |
TWO_PI
2π.
|
static DoubleUnaryOperator |
WITHIN_0_AND_2PI
Normalizing operator (result will be within the
[0, 2π[ interval). |
static DoubleUnaryOperator |
WITHIN_MINUS_PI_AND_PI
Normalizing operator (result will be within the
[-π, π[ interval). |
static Angle.Rad |
ZERO
Zero.
|
PI_OVER_TWO| Modifier and Type | Method and Description |
|---|---|
static DoubleUnaryOperator |
normalizer(double lo)
Creates an operator for normalizing/reducing an angle.
|
static Angle.Rad |
of(double angle) |
Angle.Deg |
toDeg() |
Angle.Rad |
toRad() |
Angle.Turn |
toTurn() |
equals, getAsDouble, hashCodepublic static final DoubleUnaryOperator WITHIN_0_AND_2PI
[0, 2π[ interval).public static final DoubleUnaryOperator WITHIN_MINUS_PI_AND_PI
[-π, π[ interval).public static Angle.Rad of(double angle)
angle - (in radians).public Angle.Turn toTurn()
public static DoubleUnaryOperator normalizer(double lo)
[lo, lo + 2π[ interval.lo - Lower bound of the normalized interval.Copyright © 2017–2022 The Apache Software Foundation. All rights reserved.