Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Rect

Hierarchy

  • Rect

Index

Constructors

constructor

Properties

Private Readonly _dart_contains

_dart_contains: (offset: IOffset) => boolean = ...

Type declaration

    • Parameters

      Returns boolean

Private Readonly _dart_deflate

_dart_deflate: (delta: number) => IRect = ...

Type declaration

    • Parameters

      • delta: number

      Returns IRect

Private Readonly _dart_expandToInclude

_dart_expandToInclude: (other: IRect) => IRect = ...

Type declaration

Private Readonly _dart_getBottomCenter

_dart_getBottomCenter: () => IOffset = ...

Type declaration

Private Readonly _dart_getBottomLeft

_dart_getBottomLeft: () => IOffset = ...

Type declaration

Private Readonly _dart_getBottomRight

_dart_getBottomRight: () => IOffset = ...

Type declaration

Private Readonly _dart_getCenter

_dart_getCenter: () => IOffset = ...

Type declaration

Private Readonly _dart_getCenterLeft

_dart_getCenterLeft: () => IOffset = ...

Type declaration

Private Readonly _dart_getCenterRight

_dart_getCenterRight: () => IOffset = ...

Type declaration

Private Readonly _dart_getHasNaN

_dart_getHasNaN: () => boolean = ...

Type declaration

    • (): boolean
    • Returns boolean

Private Readonly _dart_getHashCode

_dart_getHashCode: () => number = ...

Type declaration

    • (): number
    • Returns number

Private Readonly _dart_getHeight

_dart_getHeight: () => number = ...

Type declaration

    • (): number
    • Returns number

Private Readonly _dart_getIsEmpty

_dart_getIsEmpty: () => boolean = ...

Type declaration

    • (): boolean
    • Returns boolean

Private Readonly _dart_getIsFinite

_dart_getIsFinite: () => boolean = ...

Type declaration

    • (): boolean
    • Returns boolean

Private Readonly _dart_getIsInfinite

_dart_getIsInfinite: () => boolean = ...

Type declaration

    • (): boolean
    • Returns boolean

Private Readonly _dart_getLongestSide

_dart_getLongestSide: () => number = ...

Type declaration

    • (): number
    • Returns number

Private Readonly _dart_getShortestSide

_dart_getShortestSide: () => number = ...

Type declaration

    • (): number
    • Returns number

Private Readonly _dart_getSize

_dart_getSize: () => ISize = ...

Type declaration

Private Readonly _dart_getTopCenter

_dart_getTopCenter: () => IOffset = ...

Type declaration

Private Readonly _dart_getTopLeft

_dart_getTopLeft: () => IOffset = ...

Type declaration

Private Readonly _dart_getTopRight

_dart_getTopRight: () => IOffset = ...

Type declaration

Private Readonly _dart_getWidth

_dart_getWidth: () => number = ...

Type declaration

    • (): number
    • Returns number

Private Readonly _dart_inflate

_dart_inflate: (delta: number) => IRect = ...

Type declaration

    • Parameters

      • delta: number

      Returns IRect

Private Readonly _dart_intersect

_dart_intersect: (other: IRect) => IRect = ...

Type declaration

Private Readonly _dart_overlaps

_dart_overlaps: (other: IRect) => boolean = ...

Type declaration

    • (other: IRect): boolean
    • Parameters

      Returns boolean

Private Readonly _dart_shift

_dart_shift: (offset: IOffset) => IRect = ...

Type declaration

Private Readonly _dart_toString

_dart_toString: () => string = ...

Type declaration

    • (): string
    • Returns string

Private Readonly _dart_translate

_dart_translate: (translateX: number, translateY: number) => IRect = ...

Type declaration

    • (translateX: number, translateY: number): IRect
    • Parameters

      • translateX: number
      • translateY: number

      Returns IRect

Readonly bottom

bottom: number = ...

Readonly left

left: number = ...

Readonly right

right: number = ...

Readonly top

top: number = ...

Static Private _giantScalar

_giantScalar: number = 1.0e9

Static largest

largest: IRect = ...

Static zero

zero: IRect = ...

Methods

contains

  • contains(offset: IOffset): boolean

deflate

  • deflate(delta: number): IRect

expandToInclude

getBottomCenter

getBottomLeft

getBottomRight

getCenter

getCenterLeft

getCenterRight

getHasNaN

  • getHasNaN(): boolean

getHashCode

  • getHashCode(): number

getHeight

  • getHeight(): number

getIsEmpty

  • getIsEmpty(): boolean

getIsFinite

  • getIsFinite(): boolean

getIsInfinite

  • getIsInfinite(): boolean

getLongestSide

  • getLongestSide(): number

getShortestSide

  • getShortestSide(): number

getSize

getTopCenter

getTopLeft

getTopRight

getWidth

  • getWidth(): number

inflate

  • inflate(delta: number): IRect

intersect

overlaps

  • overlaps(other: IRect): boolean

shift

toString

  • toString(): string

translate

  • translate(translateX: number, translateY: number): IRect

Static fromCenter

  • fromCenter(props: { center: IOffset; height: number; width: number }): IRect

Static fromCircle

  • fromCircle(props: { center: IOffset; radius: number }): IRect

Static fromLTRB

  • fromLTRB(left: number, top: number, right: number, bottom: number): IRect

Static fromLTWH

  • fromLTWH(left: number, top: number, width: number, height: number): IRect

Static fromPoints

Static lerp

  • lerp(a: undefined | IRect, b: undefined | IRect, t: number): undefined | IRect

Generated using TypeDoc