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

Function B2Vec2CrossVectorScalar

CommonB2Math.go:499–501  ·  view source on GitHub ↗

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

(a B2Vec2, s float64)

Source from the content-addressed store, hash-verified

497/// Perform the cross product on a vector and a scalar. In 2D this produces
498/// a vector.
499func B2Vec2CrossVectorScalar(a B2Vec2, s float64) B2Vec2 {
500 return MakeB2Vec2(s*a.Y, -s*a.X)
501}
502
503/// Perform the cross product on a scalar and a vector. In 2D this produces
504/// a vector.

Callers 7

GetSearchDirectionMethod · 0.85
InitializeMethod · 0.85
WarmStartMethod · 0.85
B2CollidePolygonsFunction · 0.85
SetMethod · 0.85

Calls 1

MakeB2Vec2Function · 0.85

Tested by

no test coverage detected