MCPcopy
hub / github.com/KilledByAPixel/LittleJS / vec2FromPointer

Method vec2FromPointer

plugins/box2d.js:1896–1900  ·  view source on GitHub ↗

converts a box2d vec2 pointer to a Vector2 * @param {Object} vp

(vp)

Source from the content-addressed store, hash-verified

1894 /** converts a box2d vec2 pointer to a Vector2
1895 * @param {Object} vp */
1896 vec2FromPointer(vp)
1897 {
1898 const v = box2d.instance.wrapPointer(vp, box2d.instance.b2Vec2);
1899 return box2d.vec2From(v);
1900 }
1901
1902 /** converts a Vector2 to a box2 vec2
1903 * @param {Vector2} v */

Callers 3

raycastAllMethod · 0.80
getPointsListFunction · 0.80
setupDebugDrawFunction · 0.80

Calls 1

vec2FromMethod · 0.80

Tested by

no test coverage detected