MCPcopy
hub / github.com/toji/gl-matrix / dot

Function dot

src/vec3.js:357–359  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

355 * @returns {Number} dot product of a and b
356 */
357export function dot(a, b) {
358 return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
359}
360
361/**
362 * Computes the cross product of two vec3's

Callers 4

slerpFunction · 0.70
angleFunction · 0.70
getAngleFunction · 0.70
lerpFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected