MCPcopy
hub / github.com/yeemachine/kalidokit / dot

Method dot

src/utils/vector.ts:86–88  ·  view source on GitHub ↗

* Returns the dot product of this vector and another vector. * @param {Vector} v: Vector to dot * @returns {number} Dot product

(v: Vector)

Source from the content-addressed store, hash-verified

84 * @returns {number} Dot product
85 */
86 dot(v: Vector) {
87 return this.x * v.x + this.y * v.y + this.z * v.z;
88 }
89 /**
90 * Cross product of two vectors.
91 * @param {Vector} a: Vector to cross

Callers 3

lengthMethod · 0.95
angleToMethod · 0.95
angleBetween3DCoordsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected