Wes Mantooth - HTML5 Canvas Game Engine - Version 2.x - by Jeremy Heminger

Classes organised alphabetically

Math

radians -> {Number}

convert degrees to radians

Name Type Description
degrees Number

degrees -> {Number}

convert radians to degrees

Name Type Description
radians Number

sqr -> {Number}

return square of a number

Name Type Description
number Number

dist -> {Number}

return the distance between two poins

Name Type Description
x1Numberx1 coordinate
y1Numbery1 coordinate
x2Numberx2 coordinate
y2Numbery2 coordinate

frandom -> {Integer}

return a random integer form 0 - n

Name Type Description
n Number

isFloat -> {Boolean}

is a number a float point number

Name Type Description
n Number

isInt -> {Boolean}

is a number an integer

Name Type Description
n Number