public class PlaneAngleRadians extends Object
double values are assumed to be in
radians.PlaneAngle| Modifier and Type | Method and Description |
|---|---|
static double |
normalize(double angle,
double center)
Normalize an angle in an interval of size 2π around a
center value.
|
static double |
normalizeBetweenMinusPiAndPi(double angle)
Normalize an angle between -π and π.
|
static double |
normalizeBetweenZeroAndTwoPi(double angle)
Normalize an angle between 0 and 2π.
|
public static double normalize(double angle,
double center)
angle - Value to be normalized.center - Center of the desired interval for the result.a - 2 * k with integer k such that
center - pi <= a - 2 * k * pi <= center + pi.public static double normalizeBetweenMinusPiAndPi(double angle)
angle - Value to be normalized.a - 2 * k with integer k such that
-pi <= a - 2 * k * pi <= pi.public static double normalizeBetweenZeroAndTwoPi(double angle)
angle - Value to be normalized.a - 2 * k with integer k such that
0 <= a - 2 * k * pi <= 2 * pi.Copyright © 2017–2018 The Apache Software Foundation. All rights reserved.