Static Public Member Functions
edu.nimbus.glass.util.MathUtils Class Reference

List of all members.

Static Public Member Functions

static int mod (int a, int b)
static float mod (float a, float b)

Detailed Description

A utility class containing arithmetic and geometry helper methods.

Definition at line 37 of file MathUtils.java.


Member Function Documentation

static int edu.nimbus.glass.util.MathUtils.mod ( int  a,
int  b 
) [inline, static]

Calculates

 a mod b 

in a way that respects negative values (for example,

 mod(-1, 5) == 4 

, rather than

 -1 

).

Parameters:
athe dividend
bthe divisor
Returns:
 a mod b 

Definition at line 47 of file MathUtils.java.

static float edu.nimbus.glass.util.MathUtils.mod ( float  a,
float  b 
) [inline, static]

Calculates

 a mod b 

in a way that respects negative values (for example,

 mod(-1, 5) == 4 

, rather than

 -1 

).

Parameters:
athe dividend
bthe divisor
Returns:
 a mod b 

Definition at line 59 of file MathUtils.java.


The documentation for this class was generated from the following file:


ros_glass_tools
Author(s):
autogenerated on Thu Aug 27 2015 14:47:21