public interface AngleUtil
Copyright (c) 2013-2019 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
- double; original angle.static float normalize(float angle)
angle
- float; original angle.static DoubleScalar.Abs<DirectionUnit,AngleUnit> normalize(DoubleScalar.Abs<DirectionUnit,AngleUnit> angle)
angle
- DoubleScalar.Abs<DirectionUnit,AngleUnit>; original angle.static DoubleScalar.Rel<AngleUnit> normalize(DoubleScalar.Rel<AngleUnit> angle)
angle
- DoubleScalar.Rel<AngleUnit>; original angle.static FloatScalar.Abs<DirectionUnit,AngleUnit> normalize(FloatScalar.Abs<DirectionUnit,AngleUnit> angle)
angle
- FloatScalar.Abs<DirectionUnit,AngleUnit>; original angle.static FloatScalar.Rel<AngleUnit> normalize(FloatScalar.Rel<AngleUnit> angle)
angle
- FloatScalar.Rel<AngleUnit>; original angle.static Direction normalize(Direction angle)
angle
- Direction; original angle.static Angle normalize(Angle angle)
angle
- Angle; original angle.static FloatDirection normalize(FloatDirection angle)
angle
- FloatDirection; original angle.static FloatAngle normalize(FloatAngle angle)
angle
- FloatAngle; original angle.Copyright © 2015–2019 Delft University of Technology. All rights reserved.