public interface AngleUtil
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Method and Description |
---|---|
static Angle |
normalize(Angle angle)
Normalize an angle between 0 and 2 * PI.
|
static Direction |
normalize(Direction angle)
Normalize an angle between 0 and 2 * PI.
|
static double |
normalize(double angle)
Normalize an angle between 0 and 2 * PI.
|
static DoubleScalar.Abs<DirectionUnit,AngleUnit> |
normalize(DoubleScalar.Abs<DirectionUnit,AngleUnit> angle)
Normalize an angle between 0 and 2 * PI.
|
static DoubleScalar.Rel<AngleUnit> |
normalize(DoubleScalar.Rel<AngleUnit> angle)
Normalize an angle between 0 and 2 * PI.
|
static float |
normalize(float angle)
Normalize an angle between 0 and 2 * PI.
|
static FloatAngle |
normalize(FloatAngle angle)
Normalize an angle between 0 and 2 * PI.
|
static FloatDirection |
normalize(FloatDirection angle)
Normalize an angle between 0 and 2 * PI.
|
static FloatScalar.Abs<DirectionUnit,AngleUnit> |
normalize(FloatScalar.Abs<DirectionUnit,AngleUnit> angle)
Normalize an angle between 0 and 2 * PI.
|
static FloatScalar.Rel<AngleUnit> |
normalize(FloatScalar.Rel<AngleUnit> angle)
Normalize an angle between 0 and 2 * PI.
|
static double normalize(double angle)
angle
- original angle.static float normalize(float angle)
angle
- original angle.static DoubleScalar.Abs<DirectionUnit,AngleUnit> normalize(DoubleScalar.Abs<DirectionUnit,AngleUnit> angle)
angle
- original angle.static DoubleScalar.Rel<AngleUnit> normalize(DoubleScalar.Rel<AngleUnit> angle)
angle
- original angle.static FloatScalar.Abs<DirectionUnit,AngleUnit> normalize(FloatScalar.Abs<DirectionUnit,AngleUnit> angle)
angle
- original angle.static FloatScalar.Rel<AngleUnit> normalize(FloatScalar.Rel<AngleUnit> angle)
angle
- original angle.static Direction normalize(Direction angle)
angle
- original angle.static Angle normalize(Angle angle)
angle
- original angle.static FloatDirection normalize(FloatDirection angle)
angle
- original angle.static FloatAngle normalize(FloatAngle angle)
angle
- original angle.Copyright © 2015–2018 Delft University of Technology. All rights reserved.