Class Rectangle

Tables

rectangle.instance

Methods

rectangle:new (x, y, width, height)

Metamethods

rectangle:__data ()
rectangle:__tostring ()


Tables

rectangle.instance

Fields:

  • x number [0, ∞)
  • y number [0, ∞)
  • width number [0, ∞)
  • height number [0, ∞)

Methods

rectangle:new (x, y, width, height)

Parameters:

  • x number [0, ∞)
  • y number [0, ∞)
  • width number [0, ∞)
  • height number [0, ∞)

Returns:

    Rectangle

Metamethods

rectangle:__data ()

Returns:

    tab table with instance fields (see the luaserialization library)
rectangle:__tostring ()

Returns:

    string stringified table with instance fields (see the luaserialization library)
generated by LDoc 1.5.0 Last updated 2025-08-29 19:58:28