API Docs for: 0.4.0
Show:

Rectangle Class

Extends Convex

Rectangle shape class.

Constructor

Rectangle

(
  • w
  • h
)

Parameters:

  • w Number

    Width

  • h Number

    Height

Methods

computeMomentOfInertia

(
  • mass
)
Number

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