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

Function B2Vec2CrossScalarVector

CommonB2Math.go:505–507  ·  view source on GitHub ↗

Perform the cross product on a scalar and a vector. In 2D this produces a vector.

(s float64, a B2Vec2)

Source from the content-addressed store, hash-verified

503/// Perform the cross product on a scalar and a vector. In 2D this produces
504/// a vector.
505func B2Vec2CrossScalarVector(s float64, a B2Vec2) B2Vec2 {
506 return MakeB2Vec2(-s*a.Y, s*a.X)
507}
508
509/// Multiply a matrix times a vector. If a rotation matrix is provided,
510/// then this transforms the vector from one frame to another.

Callers 15

GetSearchDirectionMethod · 0.85
MakeB2PrismaticJointFunction · 0.85
GetJointSpeedMethod · 0.85
MakeB2WheelJointFunction · 0.85
GetJointLinearSpeedMethod · 0.85
ResetMassDataMethod · 0.85
SetMassDataMethod · 0.85

Calls 1

MakeB2Vec2Function · 0.85

Tested by

no test coverage detected