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

Constructor Index

 o Math2()

Method Index

 o angleBetween(double, double, double, double, double, double)
 o arrayAdd(double[], double[])
 o arrayDivide(double[], double[])
 o arrayMult(double[], double[])
 o arraySubtract(double[], double[])
 o bias(double, double)
 o cross(double[], double[])
 o dot(double, double)
 o dot(double, double, double, double)
 o dot(double, double, double, double, double, double)
 o dot(double[], double[])
 o gain(double, double)
 o lerp(double, double, double)
 o magnitude(double, double)
 o magnitude(double[])
 o normalize(double[])
 o random(double, double)
 o scalarAdd(double[], double)
 o scalarMult(double[], double)

Constructors

 o Math2
 public Math2()

Methods

 o random
 public static double random(double min,
                             double max)
 o lerp
 public static double lerp(double t,
                           double a,
                           double b)
 o gain
 public static double gain(double a,
                           double b)
 o bias
 public static double bias(double a,
                           double b)
 o dot
 public static double dot(double x1,
                          double y1,
                          double x2,
                          double y2)
 o dot
 public static double dot(double x1,
                          double y1,
                          double z1,
                          double x2,
                          double y2,
                          double z2)
 o dot
 public static double dot(double a,
                          double b)
 o dot
 public static double dot(double vec1[],
                          double vec2[])
 o cross
 public static double[] cross(double vec1[],
                              double vec2[])
 o magnitude
 public static double magnitude(double x1,
                                double y1)
 o magnitude
 public static double magnitude(double vec[])
 o scalarMult
 public static double[] scalarMult(double a[],
                                   double b)
 o scalarAdd
 public static double[] scalarAdd(double a[],
                                  double b)
 o arrayAdd
 public static double[] arrayAdd(double vec1[],
                                 double vec2[])
 o arraySubtract
 public static double[] arraySubtract(double vec1[],
                                      double vec2[])
 o arrayMult
 public static double[] arrayMult(double vec1[],
                                  double vec2[])
 o arrayDivide
 public static double[] arrayDivide(double vec1[],
                                    double vec2[])
 o normalize
 public static double[] normalize(double vec[])
 o 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