MCPcopy
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

constructorMethod · 0.45
rayCastMethod · 0.45
ShapeCastInputClass · 0.45
ShapeCastOutputClass · 0.45
ShapeCastFunction · 0.45
constructorMethod · 0.45
computeCentroidFunction · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
identityMethod · 0.45
constructorMethod · 0.45

Calls 1

createMethod · 0.45

Tested by

no test coverage detected