Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Rectangle

Hierarchy

Index

Constructors

constructor

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

    • Optional x: number
    • Optional y: number
    • Optional width: number
    • Optional height: number

    Returns Rectangle

Properties

bottom

bottom: number

height

height: number

left

left: number

right

right: number

top

top: number

type

type: number

width

width: number

x

x: number

y

y: number

Static EMPTY

EMPTY: Rectangle

Methods

clone

  • Returns Rectangle

contains

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

    • x: number
    • y: number

    Returns boolean

copy

  • Parameters

    Returns Rectangle

enlarge

  • Parameters

    Returns void

fit

  • Parameters

    Returns void

pad

  • pad(paddingX: number, paddingY: number): void
  • Parameters

    • paddingX: number
    • paddingY: number

    Returns void

Generated using TypeDoc