org.openmali.vecmath2.util
Class FloatUtils
java.lang.Object
org.openmali.vecmath2.util.FloatUtils
public class FloatUtils
- extends java.lang.Object
This class provides static helper methods for floats to be used instead
of complex objects.
- Author:
- Marvin Froehlich (aka Qudus)
|
Method Summary |
static float |
pointsDistance(float px1,
float py1,
float pz1,
float px2,
float py2,
float pz2)
|
static float |
pointsDistance(Point3f p1,
float px2,
float py2,
float pz2)
|
static float |
pointsDistanceSquared(float px1,
float py1,
float pz1,
float px2,
float py2,
float pz2)
|
static float |
pointsDistanceSquared(Point3f p1,
float px2,
float py2,
float pz2)
|
static float |
vectorLength(float vx,
float vy,
float vz)
|
static float |
vectorLengthSquared(float vx,
float vy,
float vz)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FloatUtils
public FloatUtils()
vectorLengthSquared
public static final float vectorLengthSquared(float vx,
float vy,
float vz)
- Returns:
- the squared length of a vector
vectorLength
public static final float vectorLength(float vx,
float vy,
float vz)
- Returns:
- the length of a vector
pointsDistanceSquared
public static final float pointsDistanceSquared(float px1,
float py1,
float pz1,
float px2,
float py2,
float pz2)
- Returns:
- the squared distance of two points
pointsDistance
public static final float pointsDistance(float px1,
float py1,
float pz1,
float px2,
float py2,
float pz2)
- Returns:
- the distance of two points
pointsDistanceSquared
public static final float pointsDistanceSquared(Point3f p1,
float px2,
float py2,
float pz2)
- Returns:
- the squared distance of two points
pointsDistance
public static final float pointsDistance(Point3f p1,
float px2,
float py2,
float pz2)
- Returns:
- the distance of two points