danger.util
Class Fixed
java.lang.Object
|
+--danger.util.Fixed
- public class Fixed
- extends java.lang.Object
|
Constructor Summary |
Fixed()
|
|
Method Summary |
static int |
abs(int value)
|
static int |
add(int fvalue1,
int fvalue2)
|
static int |
cos(int angle)
|
static int |
cosf(int fAngle)
|
static int |
divide(int dividend,
int divisor)
|
static int |
fromInt(int value)
|
static int |
fromReal(int whole,
int dividend,
int divisor)
|
static int |
getFraction(int fValue)
|
static int |
multiply(int factor1,
int factor2)
|
static int |
sin(int angle)
|
static int |
sinf(int fAngle)
|
static int |
sqrt(int fValue)
|
static int |
subtract(int fvalue1,
int fvalue2)
|
void |
testCosSin()
|
static void |
testSqrt()
|
static int |
toInt(int fvalue)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FIXED_ONE
public static final int FIXED_ONE
FIXED_TWO
public static final int FIXED_TWO
FIXED_PI
public static final int FIXED_PI
FIXED_ONE_HALF
public static final int FIXED_ONE_HALF
Fixed
public Fixed()
fromInt
public static int fromInt(int value)
toInt
public static int toInt(int fvalue)
getFraction
public static int getFraction(int fValue)
fromReal
public static int fromReal(int whole,
int dividend,
int divisor)
abs
public static int abs(int value)
divide
public static int divide(int dividend,
int divisor)
add
public static int add(int fvalue1,
int fvalue2)
subtract
public static int subtract(int fvalue1,
int fvalue2)
multiply
public static int multiply(int factor1,
int factor2)
sinf
public static int sinf(int fAngle)
cosf
public static int cosf(int fAngle)
sin
public static int sin(int angle)
cos
public static int cos(int angle)
sqrt
public static int sqrt(int fValue)
testCosSin
public void testCosSin()
testSqrt
public static void testSqrt()
Danger Confidential. Copyright © 2000-2003, Danger Inc.