Hierarchy

  • Rectangle

Index

Constructors

constructor

  • new Rectangle(x?: number, y?: number, width?: number, height?: number): Rectangle
  • Parameters

    • Default value x: number = 0
    • Default value y: number = 0
    • Default value width: number = 0
    • Default value height: number = 0

    Returns Rectangle

Properties

height

height: number

width

width: number

x

x: number

y

y: number

Accessors

bottom

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

  • Parameters

    • value: number

    Returns void

isEmpty

  • get isEmpty(): boolean
  • Returns boolean

isEmptyF

  • get isEmptyF(): boolean
  • Returns boolean

left

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

  • Parameters

    • value: number

    Returns void

location

  • get location(): Point
  • set location(value: Point): void
  • Returns Point

  • Parameters

    Returns void

right

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

  • Parameters

    • value: number

    Returns void

size

  • get size(): Size
  • set size(value: Size): void
  • Returns Size

  • Parameters

    Returns void

top

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

  • Parameters

    • value: number

    Returns void

Static empty

Methods

alignToGrid

  • alignToGrid(gridSize: number, aligningToGrid: boolean): Rectangle
  • Parameters

    • gridSize: number
    • aligningToGrid: boolean

    Returns Rectangle

clone

contains

  • contains(x: number, y: number): boolean
  • Parameters

    • x: number
    • y: number

    Returns boolean

fitToRectangle

inflate

  • inflate(width: number, height: number): Rectangle
  • Parameters

    • width: number
    • height: number

    Returns Rectangle

intersectsWith

multiply

  • multiply(multipleFactor: number): Rectangle
  • Parameters

    • multipleFactor: number

    Returns Rectangle

normalize

offset

  • Parameters

    • x: number
    • y: number

    Returns Rectangle

offsetRect

toString

  • toString(): string
  • Returns string

Static convertFromXml

Static fromLTRB

  • fromLTRB(left: number, top: number, right: number, bottom: number): Rectangle
  • Parameters

    • left: number
    • top: number
    • right: number
    • bottom: number

    Returns Rectangle

Static round

Static union

Generated using TypeDoc