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

Method Add

bench/vector_fusing/vector_test.go:39–41  ·  view source on GitHub ↗
(b Vec3s)

Source from the content-addressed store, hash-verified

37type Vec3s struct{ X, Y, Z float32 }
38
39func (a Vec3s) Add(b Vec3s) Vec3s {
40 return Vec3s{a.X + b.X, a.Y + b.Y, a.Z + b.Z}
41}
42func (a Vec3s) Mul(v float32) Vec3s {
43 return Vec3s{a.X * v, a.Y * v, a.Z * v}
44}

Callers 1

BenchmarkStructAddMulFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected