Skip to content

Instantly share code, notes, and snippets.

View abs-js's full-sized avatar
😐
i'm so so

abs-j abs-js

😐
i'm so so
View GitHub Profile
@abs-js
abs-js / README.md
Created August 2, 2024 19:13
VECTOR3 is an open source library for anyone using 3D design with JavaScript. Even if it is small, it can help your code to use fewer characters to calculate a normalized vector, for example. Go deeper and you will definitely find it interesting (be honest :P).

VECTOR3

VECTOR3 is an open source library for anyone using 3D design with JavaScript. Even if it is small, it can help your code to use fewer characters to calculate a normalized vector, for example. Go deeper and you will definitely find it interesting (be honest :P).

ALL functions

* normalizes vectors
* calculates the dot product
* add/subtract (necessary, right?)
  • simplifies in directions (you can doubt as many times as you want :D)