Modifier and Type | Field and Description |
---|---|
static PlaneAngle |
PI
Half-turn (aka π radians).
|
static PlaneAngle |
ZERO
Zero.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Test for equality with another object.
|
int |
hashCode() |
PlaneAngle |
normalize(PlaneAngle center)
Normalize an angle in an interval of size 1 turn around a
center value.
|
static PlaneAngle |
ofDegrees(double angle) |
static PlaneAngle |
ofRadians(double angle) |
static PlaneAngle |
ofTurns(double angle) |
double |
toDegrees() |
double |
toRadians() |
double |
toTurns() |
public static final PlaneAngle ZERO
public static final PlaneAngle PI
public static PlaneAngle ofTurns(double angle)
angle
- (in turns).public static PlaneAngle ofRadians(double angle)
angle
- (in radians).public static PlaneAngle ofDegrees(double angle)
angle
- (in degrees).public double toTurns()
public double toRadians()
public double toDegrees()
public PlaneAngle normalize(PlaneAngle center)
center
- Center of the desired interval for the result.a - k
with integer k
such that
center - 0.5 <= a - k < center + 0.5
(in turns).public boolean equals(Object other)
Double.NaN
.Copyright © 2017–2020 The Apache Software Foundation. All rights reserved.