public final class MathUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static double |
getAngle(int dx,
int dy)
Get the clockwise angle in radians from the origin to the indicated coordinates, where 0 is due east.
|
static float |
getLargestDistanceFromOrigin(int x,
int y) |
static float |
getSmallestDistanceFromOrigin(int x,
int y) |
public static float getSmallestDistanceFromOrigin(int x,
int y)
public static float getLargestDistanceFromOrigin(int x,
int y)
public static double getAngle(int dx,
int dy)
dx - The X coordinate to which to calculate the angle, where the value increases to the right.dy - The Y coordinate to which to calculate the angle, where the value increases downwards.