|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.java.joglutils.msg.math.MathUtil
public class MathUtil
Utility math routines.
Constructor Summary | |
---|---|
MathUtil()
|
Method Summary | |
---|---|
static float |
clamp(float val,
float min,
float max)
Clamps argument between min and max values. |
static int |
clamp(int val,
int min,
int max)
Clamps argument between min and max values. |
static boolean |
makePerpendicular(Vec3f src,
Vec3f dest)
Makes an arbitrary vector perpendicular to src and inserts it into dest. |
static int |
sgn(float f)
Returns 1 if the sign of the given argument is positive; -1 if negative; 0 if 0. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MathUtil()
Method Detail |
---|
public static boolean makePerpendicular(Vec3f src, Vec3f dest)
public static int sgn(float f)
public static float clamp(float val, float min, float max)
public static int clamp(int val, int min, int max)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |