Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Rectangle

Hierarchy

  • Rectangle

Implements

Index

Constructors

constructor

Properties

Readonly position

position: Vector2

Readonly size

size: Vector2

Accessors

bottom

  • get bottom(): number
  • Returns number

height

  • get height(): number
  • set height(value: number): void
  • Returns number

  • Parameters

    • value: number

    Returns void

left

  • get left(): number
  • set left(value: number): void
  • Returns number

  • Parameters

    • value: number

    Returns void

right

  • get right(): number
  • Returns number

top

  • get top(): number
  • set top(value: number): void
  • Returns number

  • Parameters

    • value: number

    Returns void

width

  • get width(): number
  • set width(value: number): void
  • Returns number

  • Parameters

    • value: number

    Returns void

Methods

intersects

  • Parameters

    Returns boolean

Static fromBox

  • Parameters

    Returns Rectangle

Static fromDimensions

  • fromDimensions(x: number, y: number, w: number, h: number): Rectangle
  • Parameters

    • x: number
    • y: number
    • w: number
    • h: number

    Returns Rectangle

Generated using TypeDoc