Modifier and Type | Field and Description |
---|---|
static Angle |
A180
Constant for the half of the full circle angle - 180 degrees.
|
static Angle |
A360
Constant for the full circle angle - 360 degrees.
|
static Angle |
A45
Constant for 45 degrees.
|
static Angle |
A90
Constant for the quarter of the full circle angle - 90 degrees.
|
static Angle |
ZERO
Constant for the zero angle.
|
Modifier and Type | Method and Description |
---|---|
double |
asDegree()
Returns the degree value for this angle.
|
double |
asRadian()
Returns the radian value for this angle.
|
static Angle |
atan2(double y,
double x)
Creates an angle object which corresponds the given coordinates.
|
double |
cos()
The cosine value of this angle.
|
protected Angle |
create(double value) |
Angle |
normalize()
Normalize this angle to be within -180 and the 180 degree.
|
static Angle |
ofDegree(double degree)
Creates an angle object based on the given degree value.
|
static Angle |
ofRadian(double radian)
Creates an angle object based on the given radian value.
|
double |
sin()
The sine value of this angle.
|
protected Angle |
thisOne() |
String |
toString() |
public static final Angle ZERO
public static final Angle A45
public static final Angle A90
public static final Angle A180
public static final Angle A360
public static Angle ofRadian(double radian)
radian
- the radian value to be usedpublic static Angle ofDegree(double degree)
degree
- the degree value to be usedpublic static Angle atan2(double y, double x)
y
- the y coordinatex
- the x coordinatepublic double asRadian()
public double asDegree()
public double sin()
public double cos()
public Angle normalize()
Copyright © 2014–2020, Printing in 3D. All rights reserved.