|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.ucm.look.locationProvider.Util
public class Util
INS utilities.
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static float |
adjustAngle(float degrees)
Adjust angle to be between 0 and 360 degrees |
static boolean |
between(int x,
int a,
int b)
|
static float[] |
copyArray(float[] a)
|
static void |
copyArray(float[] a,
float[] b)
|
static int[] |
copyArray(int[] a)
|
static void |
copyArray(int[] a,
int[] b)
|
static float |
distance(double[] p1,
double[] p2)
|
static float |
distance(double x1,
double y1,
double x2,
double y2)
|
static float |
distance(float[] p1,
float[] p2)
|
static float |
distance(float x1,
float y1,
float x2,
float y2)
|
static float |
distance(int[] p1,
int[] p2)
|
static float |
distance(int x1,
int y1,
int x2,
int y2)
|
static int |
distancePointLine(int x,
int y,
int[] p1,
int[] p2,
int[] m)
|
static int |
getMax(int a,
int b)
|
static int |
getMin(int a,
int b)
|
static boolean[] |
highest(int[] a,
int count)
Return the number of count-highest elements of an array. |
static boolean |
inside(int[] p,
int left,
int top,
int right,
int bottom)
|
static boolean |
inside(int x,
int y,
int left,
int top,
int right,
int bottom)
|
static double |
magnitude(double x,
double y)
|
static float |
magnitude(float[] v)
Return the magnitude of the input vector, which is the squared root of the sum of squared value |
static double |
square(double n)
|
static float |
square(float n)
|
static int |
square(int n)
|
static int[] |
translate(int[] p,
int originX,
int originY)
|
static int[] |
translate(int x,
int y,
int originX,
int originY)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static float adjustAngle(float degrees)
degrees
-
public static boolean between(int x, int a, int b)
public static float[] copyArray(float[] a)
public static void copyArray(float[] a, float[] b)
public static int[] copyArray(int[] a)
public static void copyArray(int[] a, int[] b)
public static float distance(double[] p1, double[] p2)
public static float distance(double x1, double y1, double x2, double y2)
public static float distance(float[] p1, float[] p2)
public static float distance(float x1, float y1, float x2, float y2)
public static float distance(int[] p1, int[] p2)
public static float distance(int x1, int y1, int x2, int y2)
public static int distancePointLine(int x, int y, int[] p1, int[] p2, int[] m)
public static int getMax(int a, int b)
public static int getMin(int a, int b)
public static boolean[] highest(int[] a, int count)
a
- The input arraycount
- The number of highest elements to find
public static boolean inside(int[] p, int left, int top, int right, int bottom)
public static boolean inside(int x, int y, int left, int top, int right, int bottom)
public static double magnitude(double x, double y)
public static float magnitude(float[] v)
v
- The input vector
public static double square(double n)
public static float square(float n)
public static int square(int n)
public static int[] translate(int[] p, int originX, int originY)
public static int[] translate(int x, int y, int originX, int originY)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |