Rectangle Class
Rectangle shape class.
Constructor
Rectangle
(
-
w
-
h
Parameters:
-
w
NumberWidth
-
h
NumberHeight
Methods
computeMomentOfInertia
(
Number
-
mass
Compute moment of inertia
Parameters:
-
mass
Number
Returns:
Number:
updateBoundingRadius
()
Update the bounding radius
Properties
height
Number
Total height of the rectangle
width
Number
Total width of the rectangle