Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Bloom-Engine/engine
/ vec3Dot
Function
vec3Dot
src/math/index.ts:84–86 ·
view source on GitHub ↗
(a: Vec3, b: Vec3)
Source
from the content-addressed store, hash-verified
82
}
83
84
export
function
vec3Dot(a: Vec3, b: Vec3): number {
85
return
a.x * b.x + a.y * b.y + a.z * b.z;
86
}
87
88
export
function
vec3Cross(a: Vec3, b: Vec3): Vec3 {
89
return
{
Callers
2
rayIntersectsSphere
Function · 0.85
rayIntersectsTriangle
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected