public class Toolbox
extends java.lang.Object
| Constructor and Description |
|---|
Toolbox() |
| Modifier and Type | Method and Description |
|---|---|
static float |
computeModule(float[] vector)
A simple method to compute the module of a vector of size 2.
|
static float |
computeModule(float[] p1,
float[] p2)
This method computes the square root of the square distance.
|
static float |
floatFuzzyMath(float value)
This method ensures that the given value is not equal to 0, returning the same given value if it is not equal to zero
or a very small value otherwise.
|
static float |
squareModule(float[] p1,
float[] p2)
A method to compute the square distance between two points.
|
public static float computeModule(float[] vector)
vector - The vector whose module is requested.public static float computeModule(float[] p1,
float[] p2)
p1 - p2 - public static float floatFuzzyMath(float value)
value - public static float squareModule(float[] p1,
float[] p2)
p1 - The first point.p2 - The second point.