Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vishal-raj-1/Awesome-JavaScript-Projects
/ Vector2
Function
Vector2
assets/js/8_ball_pool/Vector2.js:1–5 ·
view source on GitHub ↗
(x = 0, y = 0)
Source
from the content-addressed store, hash-verified
1
function
Vector2(x = 0, y = 0)
2
{
3
this.x = x;
4
this.y = y;
5
}
6
7
Vector2.prototype.copy =
function
()
8
{
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected