Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • R2Vector

Implements

Index

Constructors

constructor

  • new R2Vector(x: number, y: number): R2Vector
  • Parameters

    • x: number
    • y: number

    Returns R2Vector

Properties

Readonly x

x: number

Readonly y

y: number

Methods

debug

  • debug(output: Output<unknown>): void
  • Parameters

    Returns void

equals

  • equals(that: unknown): boolean
  • Parameters

    • that: unknown

    Returns boolean

equivalentTo

  • equivalentTo(that: unknown, epsilon?: number): boolean
  • Parameters

    • that: unknown
    • Optional epsilon: number

    Returns boolean

hashCode

  • hashCode(): number
  • Returns number

interpolateTo

  • Parameters

    Returns Interpolator<R2Vector>

  • Parameters

    • that: unknown

    Returns null | Interpolator<R2Vector>

isDefined

  • isDefined(): boolean
  • Returns boolean

minus

  • Parameters

    Returns R2Vector

negative

  • Returns R2Vector

plus

  • Parameters

    Returns R2Vector

times

  • Parameters

    • scalar: number

    Returns R2Vector

toAny

  • Returns R2VectorInit

toString

  • toString(): string
  • Returns string

Static fromAny

  • Parameters

    Returns R2Vector

Static fromInit

  • Parameters

    Returns R2Vector

Static isAny

  • Parameters

    • value: unknown

    Returns value is AnyR2Vector

Static isInit

  • Parameters

    • value: unknown

    Returns value is R2VectorInit

Static of

  • Parameters

    • x: number
    • y: number

    Returns R2Vector

Static zero

  • Returns R2Vector

Generated using TypeDoc