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

Method GetLocalPoint

DynamicsB2Body.go:242–244  ·  view source on GitHub ↗
(worldPoint B2Vec2)

Source from the content-addressed store, hash-verified

240}
241
242func (body B2Body) GetLocalPoint(worldPoint B2Vec2) B2Vec2 {
243 return B2TransformVec2MulT(body.M_xf, worldPoint)
244}
245
246func (body B2Body) GetLocalVector(worldVector B2Vec2) B2Vec2 {
247 return B2RotVec2MulT(body.M_xf.Q, worldVector)

Callers 8

InitializeMethod · 0.80
InitializeMethod · 0.80
InitializeMethod · 0.80
InitializeMethod · 0.80
InitializeMethod · 0.80
InitializeMethod · 0.80
InitializeMethod · 0.80
InitializeMethod · 0.80

Calls 1

B2TransformVec2MulTFunction · 0.85

Tested by

no test coverage detected