This is a simple 2D vector/point class,Vector has two parameters {x},{y}.

Constructors

  • Vector has two properties

    Parameters

    • Optionalx: number

      The x-coordinate of the Vector.

    • Optionaly: number

      The y-coordinate of the Vector.

    Returns SATVector

Properties

x: number
y: number

Methods

  • Parameters

    Returns number

  • Returns number

  • Returns number

  • Parameters

    • angle: number

    Returns SATVector

  • Parameters

    • x: number
    • Optionaly: number

    Returns SATVector