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

Method vec2From

plugins/box2d.js:1888–1892  ·  view source on GitHub ↗

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

(v)

Source from the content-addressed store, hash-verified

1886 /** converts a box2d vec2 to a Vector2
1887 * @param {Object} v */
1888 vec2From(v)
1889 {
1890 ASSERT(v instanceof box2d.instance.b2Vec2);
1891 return new Vector2(v.get_x(), v.get_y());
1892 }
1893
1894 /** converts a box2d vec2 pointer to a Vector2
1895 * @param {Object} vp */

Callers 15

getCenterOfMassMethod · 0.80
getLinearVelocityMethod · 0.80
setAngleMethod · 0.80
getAnchorAMethod · 0.80
getAnchorBMethod · 0.80
getReactionForceMethod · 0.80
getTargetMethod · 0.80
constructorMethod · 0.80
getLocalAnchorAMethod · 0.80
getLocalAnchorBMethod · 0.80
constructorMethod · 0.80
getLocalAnchorAMethod · 0.80

Calls 1

ASSERTFunction · 0.50

Tested by

no test coverage detected