public class MathUtil extends Object
| Constructor and Description |
|---|
MathUtil() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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)
Copyright © 2007–2017 Gephi Consortium. All rights reserved.