|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmali.vecmath2.util.FloatUtils
public class FloatUtils
This class provides static helper methods for floats to be used instead of complex objects.
| Constructor Summary | |
|---|---|
FloatUtils()
|
|
| Method Summary | ||
|---|---|---|
static float |
angle(float v1x,
float v1y,
float v1z,
float v2x,
float v2y,
float v2z)
Returns the angle in radians between the vectors v1 and v2. |
|
static AxisAngle3f |
computeRotation(float v1x,
float v1y,
float v1z,
float v2x,
float v2y,
float v2z,
int normalize,
AxisAngle3f result)
Computes the rotation between the vectors v1 ans v2. |
|
static
|
cross(float v1x,
float v1y,
float v1z,
float v2x,
float v2y,
float v2z,
T result)
Sets the result-vector to be the vector cross product of vectors v1 and v2. |
|
static float |
dot(float v1x,
float v1y,
float v1z,
float v2x,
float v2y,
float v2z)
Computes the dot product of the vectors v1 and vector v2. |
|
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 |
| Constructor Detail |
|---|
public FloatUtils()
| Method Detail |
|---|
public static final float vectorLengthSquared(float vx,
float vy,
float vz)
public static final float vectorLength(float vx,
float vy,
float vz)
public static final float pointsDistanceSquared(float px1,
float py1,
float pz1,
float px2,
float py2,
float pz2)
public static final float pointsDistance(float px1,
float py1,
float pz1,
float px2,
float py2,
float pz2)
public static final float pointsDistanceSquared(Point3f p1,
float px2,
float py2,
float pz2)
public static final float pointsDistance(Point3f p1,
float px2,
float py2,
float pz2)
public static final <T extends Tuple3f> T cross(float v1x,
float v1y,
float v1z,
float v2x,
float v2y,
float v2z,
T result)
v1x - the first vectorv1y - the first vectorv1z - the first vectorv2x - the second vectorv2y - the second vectorv2z - the second vectorresult - the result vector
public static final float dot(float v1x,
float v1y,
float v1z,
float v2x,
float v2y,
float v2z)
v1x - the first vectorv1y - the first vectorv1z - the first vectorv2x - the second vectorv2y - the second vectorv2z - the second vector
public static final float angle(float v1x,
float v1y,
float v1z,
float v2x,
float v2y,
float v2z)
v1x - the first vectorv1y - the first vectorv1z - the first vectorv2x - the second vectorv2y - the second vectorv2z - the second vector
public static final AxisAngle3f computeRotation(float v1x,
float v1y,
float v1z,
float v2x,
float v2y,
float v2z,
int normalize,
AxisAngle3f result)
v1x - the first vectorv1y - the first vectorv1z - the first vectorv2x - the second vectorv2y - the second vectorv2z - the second vectornormalize - normalize input vectors (bitmask)result - the result object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||