Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Rectangle

Hierarchy

  • Rectangle

Index

Constructors

constructor

  • new Rectangle(left: number, bottom: number, width: number, height: number): Rectangle

Accessors

Bottom

  • get Bottom(): number

Height

  • get Height(): number

Left

  • get Left(): number

Right

  • get Right(): number

Top

  • get Top(): number

Width

  • get Width(): number

Methods

contains

  • contains(point: Vector2): boolean
  • contains(x: number, y: number): boolean

toAbsolute

  • toAbsolute(x: Vector2): Vector2
  • toAbsolute(x: number, y: number): number[]

toLocal

  • toLocal(x: Vector2): Vector2
  • toLocal(x: number, y: number): number[]

toLocalNormalized

  • toLocalNormalized(x: Vector2): Vector2
  • toLocalNormalized(x: number, y: number): number[]
  • Convert relative ratio of position in the rectangle from absolute coordinate

    Parameters

    Returns Vector2

    [description]

  • Parameters

    • x: number
    • y: number

    Returns number[]

toString

  • toString(): string

Static edgeSizeEquals

Static equals

Generated using TypeDoc