public class Angle extends Object
Angles are represented as an int value ranging from 0-2047, where the following is true:
|Constructor and Description|
|Modifier and Type||Method and Description|
Converts the angle value to the nearest cardinal direction.
public Direction getNearestDirection()
Each cardinal direction contains 512 angles, ranging between -256 and +256 of it's true value. Negative values and values above 2047 are wrapped accordingly.
Copyright © 2014–2019. All rights reserved.