Description

Vector2 math

Features:

  1. Add
  2. Subtract
  3. Multiple
  4. Divide
  5. Scale
  6. Dot Product
  7. Magnitude
  8. Normalize
  9. Direction

Macros:

  1. vec2_zero [0,0]
  2. vec2_one [1,1]
  3. vec2_up [0, 1]
  4. vec2_down [0, -1]
  5. vec2_left [-1, 0]
  6. vec2_right [1, 0]
  7. vec2_x and vec2_y

vec2_x and vec2_y usage:

var vec = [0,5];
var _x = vec[vec2_x];
var _y = vec[vec2_y];

End User Licence Agreement (EULA).

Version 0.9.1. Published March 2, 2019

Age Rating: 4+

Average Rating

This asset hasn't received enough reviews yet.

Your review

You can only review assets you've bought.

No reviews yet

No reviews have been left for this asset - be the first!

Package contents

Loading, please wait

What is the issue?

Back to Top