Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "Algebra"

Index

Functions

vec

  • vec(x: number, y: number): Vector
  • Shorthand for creating new Vectors - returns a new Vector instance with the provided X and Y components.

    Parameters

    • x: number

      X component of the Vector

    • y: number

      Y component of the Vector

    Returns Vector