Options
All
  • Public
  • Public/Protected
  • All
Menu

Based on Vector2 class in C#.

Hierarchy

  • Vector2

Index

Constructors

  • new Vector2(x: number, y: number): Vector2

Properties

x: number

The x position of the vector.

y: number

The y position of the vector.

Accessors

  • get length(): number

Methods

  • divide(divideFactor: number): Vector2
  • normalize(): void
  • scale(scaleFactor: number): Vector2
  • toString(): string

Generated using TypeDoc