RdcPanda
Class Maths

java.lang.Object
  extended by 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
 

Constructor Detail

Maths

public Maths()
Method Detail

hypot

public static double hypot(double a,
                           double b)
sqrt(a^2 + b^2) without under/overflow. *

Parameters:
a - the a
b - 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 a
b - the b
c - the c
solutions - the solutions
Returns:
true, if sin angles