MCPcopy Index your code
hub / github.com/DeepNotesApp/DeepNotes / angleTo

Method angleTo

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

Source from the content-addressed store, hash-verified

72 return Math.atan2(this.y, this.x);
73 }
74 angleTo(vec: Vec2): number {
75 return Math.atan2(this.cross(vec), this.dot(vec));
76 }
77 cosineTo(vec: Vec2) {
78 const dotProduct = this.dot(vec);
79 const magnitudeProduct = this.length() * vec.length();

Callers

nothing calls this directly

Calls 2

crossMethod · 0.95
dotMethod · 0.95

Tested by

no test coverage detected