MCPcopy Create free account
hub / github.com/DeepNotesApp/DeepNotes / cross

Method cross

packages/@stdlib/misc/src/vec2.ts:54–56  ·  view source on GitHub ↗
(vec: Vec2)

Source from the content-addressed store, hash-verified

52 return this.x * vec.x + this.y * vec.y;
53 }
54 cross(vec: Vec2): number {
55 return this.x * vec.y - this.y * vec.x;
56 }
57
58 length(): number {
59 return Math.sqrt(this.dot(this));

Callers 1

angleToMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected