randomNumber(int min, int max) : int
degToRad(double deg) : double
radToDeg(double rad) : double
valueAtPos(int min, int max, double pos) : double
xValue(int length, int angle) : double
yValue(int length, int angle) : double
randomNumber(int min, int max) : int
Returns a random number between min and max. Min defaults to 0, and max defaults to 10.
degToRad(double deg) : double
Converts the given number of degrees to radians and returns the value.
radToDeg(double rad) : double
Converts the given number of radians to degrees and returns the value.
valueAtPos(int min, int max, double pos) : double
Calculates the value in a range at the given position.
pos is a number between 0.0 and 1.0. If pos is 0, the function returns min; if pos is 1, the function returns max. For example, a call to BBMath.valueAtPos(5, 15, 0.5) would return 10.
xValue(int length, int angle) : double
Returns to the x component of a line given a length of a line and the angle it is drawn at.
yValue(int length, int angle) : double
Returns to the y component of a line given a length of a line and the angle it is drawn at.