You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
// 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]));
|
|
}
|