public abstract class Angle extends Object implements DoubleSupplier
Modifier and Type | Class and Description |
---|---|
static class |
Angle.Deg
Unit: degrees.
|
static class |
Angle.Rad
Unit: radians.
|
static class |
Angle.Turn
Unit: turns.
|
Modifier and Type | Field and Description |
---|---|
static double |
PI_OVER_TWO
π/2.
|
static double |
TWO_PI
2π.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Test for equality with another object.
|
double |
getAsDouble() |
int |
hashCode() |
abstract Angle.Deg |
toDeg() |
abstract Angle.Rad |
toRad() |
abstract Angle.Turn |
toTurn() |
public static final double TWO_PI
public static final double PI_OVER_TWO
public double getAsDouble()
getAsDouble
in interface DoubleSupplier
public boolean equals(Object other)
Double.NaN
).public abstract Angle.Turn toTurn()
Copyright © 2017–2022 The Apache Software Foundation. All rights reserved.