MCPcopy 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
84export function vec3Dot(a: Vec3, b: Vec3): number {
85 return a.x * b.x + a.y * b.y + a.z * b.z;
86}
87
88export function vec3Cross(a: Vec3, b: Vec3): Vec3 {
89 return {

Callers 2

rayIntersectsSphereFunction · 0.85
rayIntersectsTriangleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected