Interface Bounds

Index

Properties

Methods

Properties

public x1: number

public x2: number

public y1: number

public y2: number

Methods

public add(x: number, y: number): Bounds

Parameters

  • x: number
  • y: number

Returns

Bounds

public clear(): Bounds

Returns

Bounds

public contains(x: number, y: number): boolean

Parameters

  • x: number
  • y: number

Returns

boolean

public encloses(b: Bounds): boolean

Parameters

Returns

boolean

public expand(d: number): Bounds

Parameters

  • d: number

Returns

Bounds

public height(): number

Returns

number

public intersects(b: Bounds): boolean

Parameters

Returns

boolean

public rotate(angle: number, x: number, y: number): Bounds

Parameters

  • angle: number
  • x: number
  • y: number

Returns

Bounds

public round(): Bounds

Returns

Bounds

public set(x1: number, y1: number, x2: number, y2: number): Bounds

Parameters

  • x1: number
  • y1: number
  • x2: number
  • y2: number

Returns

Bounds

public translate(dx: number, dy: number): Bounds

Parameters

  • dx: number
  • dy: number

Returns

Bounds

public union(b: Bounds): Bounds

Parameters

Returns

Bounds

public width(): number

Returns

number