MCPcopy Create free account
hub / github.com/ByteArena/box2d / GetWorldPoint

Method GetWorldPoint

DynamicsB2Body.go:234–236  ·  view source on GitHub ↗
(localPoint B2Vec2)

Source from the content-addressed store, hash-verified

232}
233
234func (body B2Body) GetWorldPoint(localPoint B2Vec2) B2Vec2 {
235 return B2TransformVec2Mul(body.M_xf, localPoint)
236}
237
238func (body B2Body) GetWorldVector(localVector B2Vec2) B2Vec2 {
239 return B2RotVec2Mul(body.M_xf.Q, localVector)

Callers 15

GetAnchorAMethod · 0.80
GetAnchorBMethod · 0.80
GetAnchorAMethod · 0.80
GetAnchorBMethod · 0.80
GetAnchorAMethod · 0.80
GetAnchorBMethod · 0.80
GetJointTranslationMethod · 0.80
GetAnchorAMethod · 0.80
GetAnchorBMethod · 0.80
GetJointTranslationMethod · 0.80
GetAnchorAMethod · 0.80

Calls 1

B2TransformVec2MulFunction · 0.85

Tested by

no test coverage detected