Clone in a terminal:
// By: Tom Wambold <tom5760@gmail.com>
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]));
}

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112