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

Method GetAngle

CommonB2Math.go:396–398  ·  view source on GitHub ↗

Get the angle in radians

()

Source from the content-addressed store, hash-verified

394
395/// Get the angle in radians
396func (r B2Rot) GetAngle() float64 {
397 return math.Atan2(r.S, r.C)
398}
399
400/// Get the x-axis
401func (r B2Rot) GetXAxis() B2Vec2 {

Callers 5

InitializeMethod · 0.45
InitializeMethod · 0.45
InitializeMethod · 0.45
TestCPPComplianceFunction · 0.45
InitializeMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestCPPComplianceFunction · 0.36