RdcPanda
Class Maths
java.lang.Object
RdcPanda.Maths
public class Maths
- extends java.lang.Object
*
This class is modified from the Jama numeric package. Written by Lincong Wang (2001-2005).
Constructor Summary |
Maths()
|
Method Summary |
static double |
hypot(double a,
double b)
sqrt(a^2 + b^2) without under/overflow. |
static boolean |
sinAngles(double a,
double b,
double c,
double[] solutions)
solve the sin equation:
a * sin(theta) + b * cos(theta) = c;. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Maths
public Maths()
hypot
public static double hypot(double a,
double b)
- sqrt(a^2 + b^2) without under/overflow. *
- Parameters:
a
- the ab
- the b
- Returns:
- the double
sinAngles
public static boolean sinAngles(double a,
double b,
double c,
double[] solutions)
- solve the sin equation:
a * sin(theta) + b * cos(theta) = c;.
- Parameters:
a
- the ab
- the bc
- the csolutions
- the solutions
- Returns:
- true, if sin angles