Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/piqnt/planck.js
/ zero
Method
zero
src/common/Vec2.ts:80–85 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
78
}
79
80
static zero(): Vec2 {
81
const
obj = Object.create(Vec2.prototype);
82
obj.x = 0;
83
obj.y = 0;
84
return
obj;
85
}
86
87
/** @hidden */
88
static neo(x: number, y: number): Vec2 {
Callers
15
constructor
Method · 0.45
rayCast
Method · 0.45
ShapeCastInput
Class · 0.45
ShapeCastOutput
Class · 0.45
ShapeCast
Function · 0.45
constructor
Method · 0.45
computeCentroid
Function · 0.45
constructor
Method · 0.45
constructor
Method · 0.45
constructor
Method · 0.45
identity
Method · 0.45
constructor
Method · 0.45
Calls
1
create
Method · 0.45
Tested by
no test coverage detected