Skip to content

A JavaScript file containing a Vector2 class. This is meant to be used for game development adjacent projects that require movement in 2 axis.

License

Notifications You must be signed in to change notification settings

Ethan-Caracoglia/Javascript_Vector2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Javascript_Vector2

Description

A JavaScript file containing a Vector2 class. This contains a basic vector2 class that contains basic x and y properties as well as functions to add or subtract the vector with another vector. It also contains scalar multiplying, magnitude, and normalized functions for working with the magnitude and changing it. It does contain a function to find the angle in degrees as well as a function to find the dot product and the distance of this and another vector2. The Vector2 type is checked during any method that takes a Vector2 as a parameter.

Purpose

This is meant to be used where vector movement and math is important and it would be desireable if it was made much easier.

About

A JavaScript file containing a Vector2 class. This is meant to be used for game development adjacent projects that require movement in 2 axis.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published