All Packages Class Hierarchy This Package Previous Next Index
Class improv.util.Math2
java.lang.Object
|
+----improv.util.Math2
- public final class Math2
- extends Object
-
Math2()
-
-
angleBetween(double, double, double, double, double, double)
-
-
arrayAdd(double[], double[])
-
-
arrayDivide(double[], double[])
-
-
arrayMult(double[], double[])
-
-
arraySubtract(double[], double[])
-
-
bias(double, double)
-
-
cross(double[], double[])
-
-
dot(double, double)
-
-
dot(double, double, double, double)
-
-
dot(double, double, double, double, double, double)
-
-
dot(double[], double[])
-
-
gain(double, double)
-
-
lerp(double, double, double)
-
-
magnitude(double, double)
-
-
magnitude(double[])
-
-
normalize(double[])
-
-
random(double, double)
-
-
scalarAdd(double[], double)
-
-
scalarMult(double[], double)
-
Math2
public Math2()
random
public static double random(double min,
double max)
lerp
public static double lerp(double t,
double a,
double b)
gain
public static double gain(double a,
double b)
bias
public static double bias(double a,
double b)
dot
public static double dot(double x1,
double y1,
double x2,
double y2)
dot
public static double dot(double x1,
double y1,
double z1,
double x2,
double y2,
double z2)
dot
public static double dot(double a,
double b)
dot
public static double dot(double vec1[],
double vec2[])
cross
public static double[] cross(double vec1[],
double vec2[])
magnitude
public static double magnitude(double x1,
double y1)
magnitude
public static double magnitude(double vec[])
scalarMult
public static double[] scalarMult(double a[],
double b)
scalarAdd
public static double[] scalarAdd(double a[],
double b)
arrayAdd
public static double[] arrayAdd(double vec1[],
double vec2[])
arraySubtract
public static double[] arraySubtract(double vec1[],
double vec2[])
arrayMult
public static double[] arrayMult(double vec1[],
double vec2[])
arrayDivide
public static double[] arrayDivide(double vec1[],
double vec2[])
normalize
public static double[] normalize(double vec[])
angleBetween
public static double angleBetween(double xOrigin,
double yOrigin,
double x1,
double y1,
double x2,
double y2)
All Packages Class Hierarchy This Package Previous Next Index