public class Util extends Object
Modifier and Type | Field and Description |
---|---|
static float |
FLOAT_EPS |
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static boolean |
diff(float a,
float b) |
static float |
distance(float x1,
float y1,
float x2,
float y2) |
static float |
distance(float x1,
float y1,
float z1,
float x2,
float y2,
float z2) |
static float |
distance(float x1,
float y1,
float z1,
float rx1,
float ry1,
float rz1,
float x2,
float y2,
float z2,
float rx2,
float ry2,
float rz2) |
static float |
lerp(float start,
float stop,
float amt)
Calculates a number between two numbers at a specific increment.
|
static boolean |
negative(float a) |
static boolean |
nonZero(float a) |
static boolean |
positive(float a) |
static boolean |
same(float a,
float b) |
static boolean |
zero(float a) |
public static boolean same(float a, float b)
public static boolean diff(float a, float b)
public static boolean zero(float a)
public static boolean nonZero(float a)
public static boolean positive(float a)
public static boolean negative(float a)
public static float distance(float x1, float y1, float x2, float y2)
public static float distance(float x1, float y1, float z1, float x2, float y2, float z2)
public static float distance(float x1, float y1, float z1, float rx1, float ry1, float rz1, float x2, float y2, float z2, float rx2, float ry2, float rz2)
public static final float lerp(float start, float stop, float amt)
amt
parameter is the amount to interpolate between the two values where 0.0 equal to the
first point, 0.1 is very near the first point, 0.5 is half-way in between, etc.Processing Library proscene by Jean Pierre Charalambos. (c) 2014-2017 National University of Colombia