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

Method Set

CommonB2Math.go:384–387  ·  view source on GitHub ↗

Set using an angle in radians.

(anglerad float64)

Source from the content-addressed store, hash-verified

382
383/// Set using an angle in radians.
384func (r *B2Rot) Set(anglerad float64) {
385 r.S = math.Sin(anglerad)
386 r.C = math.Cos(anglerad)
387}
388
389/// Set to the identity rotation
390func (r *B2Rot) SetIdentity() {

Callers 15

MakeB2WeldJointDefFunction · 0.45
MakeB2RopeJointDefFunction · 0.45
SolveTOIMethod · 0.45
MakeB2PrismaticJointDefFunction · 0.45
MakeB2WheelJointDefFunction · 0.45
SynchronizeTransformMethod · 0.45
AdvanceMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestCPPComplianceFunction · 0.36