|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
com.thortech.xl.util.adapters.tcUtilMathOperations
public class tcUtilMathOperations
This class has the basic math operations utility methods. Author: Louis Cheng July 11, 2002
| Constructor Summary | |
|---|---|
tcUtilMathOperations() |
|
| Method Summary | |
|---|---|
static float |
add(float pnLeftVar, float pnRightVar)method that performs addition of two floats. |
static int |
add(float pnLeftVar, int pnRightVar)method that performs addition of a float and integer. |
static float |
add(int pnLeftVar, float pnRightVar)method that performs addition of a float and integer. |
static int |
add(int pnLeftVar, int pnRightVar)method that performs addition of two integers. |
static float |
divide(float pnLeftVar, float pnRightVar)method that performs division of two floats. |
static int |
divide(float pnLeftVar, int pnRightVar)method that performs division of a float and integer. |
static float |
divide(int pnLeftVar, float pnRightVar)method that performs division of a float and integer. |
static int |
divide(int pnLeftVar, int pnRightVar)method that performs division of two integers. |
static float |
modulus(float pnLeftVar, float pnRightVar)method that performs modulus of two floats. |
static int |
modulus(float pnLeftVar, int pnRightVar)method that performs modulus of a float and integer. |
static float |
modulus(int pnLeftVar, float pnRightVar)method that performs modulus of a float and integer. |
static int |
modulus(int pnLeftVar, int pnRightVar)method that performs modulus of two integers. |
static float |
multiply(float pnLeftVar, float pnRightVar)method that performs multiplication of two floats. |
static int |
multiply(float pnLeftVar, int pnRightVar)method that performs multiplication of a float and integer. |
static float |
multiply(int pnLeftVar, float pnRightVar)method that performs multiplication of a float and integer. |
static int |
multiply(int pnLeftVar, int pnRightVar)method that performs multiplication of two integers. |
static float |
subtract(float pnLeftVar, float pnRightVar)method that performs subtraction of two floats. |
static int |
subtract(float pnLeftVar, int pnRightVar)method that performs subtraction of a float and integer. |
static float |
subtract(int pnLeftVar, float pnRightVar)method that performs subtraction of a float and integer. |
static int |
subtract(int pnLeftVar, int pnRightVar)method that performs subtraction of two integers. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public tcUtilMathOperations()
| Method Detail |
|---|
public static int add(int pnLeftVar,
int pnRightVar)
pnLeftVar - left side of the expressionpnRightVar - right side of the expression
public static float add(float pnLeftVar,
float pnRightVar)
pnLeftVar - left side of the expressionpnRightVar - right side of the expression
public static float add(int pnLeftVar,
float pnRightVar)
pnLeftVar - left side of the expressionpnRightVar - right side of the expression
public static int add(float pnLeftVar,
int pnRightVar)
pnLeftVar - left side of the expressionpnRightVar - right side of the expression
public static int subtract(int pnLeftVar,
int pnRightVar)
pnLeftVar - left side of the expressionpnRightVar - right side of the expression
public static float subtract(float pnLeftVar,
float pnRightVar)
pnLeftVar - left side of the expressionpnRightVar - right side of the expression
public static float subtract(int pnLeftVar,
float pnRightVar)
pnLeftVar - left side of the expressionpnRightVar - right side of the expression
public static int subtract(float pnLeftVar,
int pnRightVar)
pnLeftVar - left side of the expressionpnRightVar - right side of the expression
public static int multiply(int pnLeftVar,
int pnRightVar)
pnLeftVar - left side of the expressionpnRightVar - right side of the expression
public static float multiply(float pnLeftVar,
float pnRightVar)
pnLeftVar - left side of the expressionpnRightVar - right side of the expression
public static float multiply(int pnLeftVar,
float pnRightVar)
pnLeftVar - left side of the expressionpnRightVar - right side of the expression
public static int multiply(float pnLeftVar,
int pnRightVar)
pnLeftVar - left side of the expressionpnRightVar - right side of the expression
public static int divide(int pnLeftVar,
int pnRightVar)
pnLeftVar - left side of the expressionpnRightVar - right side of the expression
public static float divide(float pnLeftVar,
float pnRightVar)
pnLeftVar - left side of the expressionpnRightVar - right side of the expression
public static float divide(int pnLeftVar,
float pnRightVar)
pnLeftVar - left side of the expressionpnRightVar - right side of the expression
public static int divide(float pnLeftVar,
int pnRightVar)
pnLeftVar - left side of the expressionpnRightVar - right side of the expression
public static int modulus(int pnLeftVar,
int pnRightVar)
pnLeftVar - left side of the expressionpnRightVar - right side of the expression
public static float modulus(float pnLeftVar,
float pnRightVar)
pnLeftVar - left side of the expressionpnRightVar - right side of the expression
public static float modulus(int pnLeftVar,
float pnRightVar)
pnLeftVar - left side of the expressionpnRightVar - right side of the expression
public static int modulus(float pnLeftVar,
int pnRightVar)
pnLeftVar - left side of the expressionpnRightVar - right side of the expression
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||