Options
All
  • Public
  • Public/Protected
  • All
Menu

Based on Vector2 class in C#.

Hierarchy

  • Vector2

Index

Constructors

  • Parameters

    • x: number
    • y: number

    Returns <internal>.Vector2

Properties

x: number

The x position of the vector.

y: number

The y position of the vector.

Accessors

  • get length(): number
  • The length of the vector.

    Returns number

Methods

  • Parameters

    • divideFactor: number

    Returns <internal>.Vector2

  • Performs a dot multiplication with another vector.

    Parameters

    Returns number

  • Checks whether this vector is equal to another vector.

    Parameters

    Returns boolean

  • Gets the distance between this vector and another vector.

    Parameters

    Returns number

  • normalize(): void
  • Normalizes the vector.

    Returns void

  • Scales the vector.

    Parameters

    • scaleFactor: number

    Returns <internal>.Vector2

  • toString(): string
  • Returns a string representation of the vector.

    Returns string

Generated using TypeDoc