MCPcopy Create free account
hub / github.com/egonelbre/exp / Add

Method Add

bench/vector_fusing/vector_test.go:10–12  ·  view source on GitHub ↗
(b Vec3)

Source from the content-addressed store, hash-verified

8type Vec3 [3]float32
9
10func (a Vec3) Add(b Vec3) Vec3 {
11 return Vec3{a[0] + b[0], a[1] + b[1], a[2] + b[2]}
12}
13func (a Vec3) Mul(v float32) Vec3 {
14 return Vec3{a[0] * v, a[1] * v, a[2] * v}
15}

Callers 2

Cosmic1Function · 0.95
BenchmarkAddMulFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected