Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Offset

Hierarchy

  • Offset

Implements

Index

Constructors

constructor

  • new Offset(dx: number, dy: number): Offset

Properties

Private Readonly _dart_getDirection

_dart_getDirection: () => number = ...

Type declaration

    • (): number
    • Returns number

Private Readonly _dart_getDistance

_dart_getDistance: () => number = ...

Type declaration

    • (): number
    • Returns number

Private Readonly _dart_getDistanceSquared

_dart_getDistanceSquared: () => number = ...

Type declaration

    • (): number
    • Returns number

Private Readonly _dart_getDx

_dart_getDx: () => number = ...

Type declaration

    • (): number
    • Returns number

Private Readonly _dart_getDy

_dart_getDy: () => number = ...

Type declaration

    • (): number
    • Returns number

Private Readonly _dart_getHashCode

_dart_getHashCode: () => number = ...

Type declaration

    • (): number
    • Returns number

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_scale

_dart_scale: (scaleX: number, scaleY: number) => IOffset = ...

Type declaration

    • (scaleX: number, scaleY: number): IOffset
    • Parameters

      • scaleX: number
      • scaleY: number

      Returns IOffset

Private Readonly _dart_toString

_dart_toString: () => string = ...

Type declaration

    • (): string
    • Returns string

Private Readonly _dart_translate

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

Type declaration

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

      • translateX: number
      • translateY: number

      Returns IOffset

Static infinite

infinite: Offset = ...

Static zero

zero: Offset = ...

Methods

getDirection

  • getDirection(): number

getDistance

  • getDistance(): number

getDistanceSquared

  • getDistanceSquared(): number

getDx

  • getDx(): number

getDy

  • getDy(): number

getHashCode

  • getHashCode(): number

getIsFinite

  • getIsFinite(): boolean

getIsInfinite

  • getIsInfinite(): boolean

scale

  • scale(scaleX: number, scaleY: number): IOffset

toString

  • toString(): string

translate

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

Static fromDirection

  • fromDirection(direction: number, distance?: number): IOffset

Static lerp

Generated using TypeDoc