MCPcopy
hub / github.com/piqnt/planck.js / setVec2

Function setVec2

src/common/Matrix.ts:31–35  ·  view source on GitHub ↗
(out: Vec2Value, x: number, y: number)

Source from the content-addressed store, hash-verified

29}
30
31export function setVec2(out: Vec2Value, x: number, y: number): Vec2Value {
32 out.x = x;
33 out.y = y;
34 return out;
35}
36
37export function copyVec2(out: Vec2Value, w: Vec2Value): Vec2Value {
38 out.x = w.x;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected