MCPcopy
hub / github.com/piqnt/planck.js / crossVec2Vec2

Function crossVec2Vec2

src/common/Matrix.ts:159–161  ·  view source on GitHub ↗
(a: Vec2Value, b: Vec2Value)

Source from the content-addressed store, hash-verified

157}
158
159export function crossVec2Vec2(a: Vec2Value, b: Vec2Value): number {
160 return a.x * b.y - a.y * b.x;
161}
162
163export function dotVec2(a: Vec2Value, b: Vec2Value): number {
164 return a.x * b.x + a.y * b.y;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected