Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
396
func
(r B2Rot) GetAngle() float64 {
397
return
math.Atan2(r.S, r.C)
398
}
399
400
/// Get the x-axis
401
func
(r B2Rot) GetXAxis() B2Vec2 {
Callers
5
Initialize
Method · 0.45
Initialize
Method · 0.45
Initialize
Method · 0.45
TestCPPCompliance
Function · 0.45
Initialize
Method · 0.45
Calls
no outgoing calls
Tested by
1
TestCPPCompliance
Function · 0.36