Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
*/
357
export
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
slerp
Function · 0.70
angle
Function · 0.70
getAngle
Function · 0.70
lerp
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected