Skip navigation links


com.thortech.xl.util.adapters
Class tcUtilMathOperations

java.lang.Object
  extended by com.thortech.xl.util.adapters.tcUtilMathOperations


public class tcUtilMathOperations
extends java.lang.Object

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

tcUtilMathOperations

public tcUtilMathOperations()

Method Detail

add

public static int add(int pnLeftVar,
                      int pnRightVar)
method that performs addition of two integers.
Parameters:
pnLeftVar - left side of the expression
pnRightVar - right side of the expression
Returns:
the result of the addition

add

public static float add(float pnLeftVar,
                        float pnRightVar)
method that performs addition of two floats.
Parameters:
pnLeftVar - left side of the expression
pnRightVar - right side of the expression
Returns:
the result of the addition

add

public static float add(int pnLeftVar,
                        float pnRightVar)
method that performs addition of a float and integer.
Parameters:
pnLeftVar - left side of the expression
pnRightVar - right side of the expression
Returns:
the result of the addition

add

public static int add(float pnLeftVar,
                      int pnRightVar)
method that performs addition of a float and integer.
Parameters:
pnLeftVar - left side of the expression
pnRightVar - right side of the expression
Returns:
the result of the addition

subtract

public static int subtract(int pnLeftVar,
                           int pnRightVar)
method that performs subtraction of two integers.
Parameters:
pnLeftVar - left side of the expression
pnRightVar - right side of the expression
Returns:
the result of the subtraction

subtract

public static float subtract(float pnLeftVar,
                             float pnRightVar)
method that performs subtraction of two floats.
Parameters:
pnLeftVar - left side of the expression
pnRightVar - right side of the expression
Returns:
the result of the subtraction

subtract

public static float subtract(int pnLeftVar,
                             float pnRightVar)
method that performs subtraction of a float and integer.
Parameters:
pnLeftVar - left side of the expression
pnRightVar - right side of the expression
Returns:
the result of the subtraction

subtract

public static int subtract(float pnLeftVar,
                           int pnRightVar)
method that performs subtraction of a float and integer.
Parameters:
pnLeftVar - left side of the expression
pnRightVar - right side of the expression
Returns:
the result of the subtraction

multiply

public static int multiply(int pnLeftVar,
                           int pnRightVar)
method that performs multiplication of two integers.
Parameters:
pnLeftVar - left side of the expression
pnRightVar - right side of the expression
Returns:
the result of the multiplication

multiply

public static float multiply(float pnLeftVar,
                             float pnRightVar)
method that performs multiplication of two floats.
Parameters:
pnLeftVar - left side of the expression
pnRightVar - right side of the expression
Returns:
the result of the multiplication

multiply

public static float multiply(int pnLeftVar,
                             float pnRightVar)
method that performs multiplication of a float and integer.
Parameters:
pnLeftVar - left side of the expression
pnRightVar - right side of the expression
Returns:
the result of the multiplication

multiply

public static int multiply(float pnLeftVar,
                           int pnRightVar)
method that performs multiplication of a float and integer.
Parameters:
pnLeftVar - left side of the expression
pnRightVar - right side of the expression
Returns:
the result of the multiplication

divide

public static int divide(int pnLeftVar,
                         int pnRightVar)
method that performs division of two integers.
Parameters:
pnLeftVar - left side of the expression
pnRightVar - right side of the expression
Returns:
the result of the division

divide

public static float divide(float pnLeftVar,
                           float pnRightVar)
method that performs division of two floats.
Parameters:
pnLeftVar - left side of the expression
pnRightVar - right side of the expression
Returns:
the result of the division

divide

public static float divide(int pnLeftVar,
                           float pnRightVar)
method that performs division of a float and integer.
Parameters:
pnLeftVar - left side of the expression
pnRightVar - right side of the expression
Returns:
the result of the division

divide

public static int divide(float pnLeftVar,
                         int pnRightVar)
method that performs division of a float and integer.
Parameters:
pnLeftVar - left side of the expression
pnRightVar - right side of the expression
Returns:
the result of the division

modulus

public static int modulus(int pnLeftVar,
                          int pnRightVar)
method that performs modulus of two integers.
Parameters:
pnLeftVar - left side of the expression
pnRightVar - right side of the expression
Returns:
the result of the modulus operation

modulus

public static float modulus(float pnLeftVar,
                            float pnRightVar)
method that performs modulus of two floats.
Parameters:
pnLeftVar - left side of the expression
pnRightVar - right side of the expression
Returns:
the result of the modulus operation

modulus

public static float modulus(int pnLeftVar,
                            float pnRightVar)
method that performs modulus of a float and integer.
Parameters:
pnLeftVar - left side of the expression
pnRightVar - right side of the expression
Returns:
the result of the modulus operation

modulus

public static int modulus(float pnLeftVar,
                          int pnRightVar)
method that performs modulus of a float and integer.
Parameters:
pnLeftVar - left side of the expression
pnRightVar - right side of the expression
Returns:
the result of the modulus operation

Skip navigation links


Copyright © 2014, Oracle and/or its affiliates. All rights reserved.