// By: Tom Wambold package other import "math" // A three-value vector (i, j, k) type Vector3 [3]float64 func (a *Vector3) Size() float64 { return math.Sqrt(float64(a[0] * a[0] + a[1] * a[1] + a[2] * a[2])); }