func QuatLength(q Quat) float32 {
	return Sqrt(q.X*q.X + q.Y*q.Y + q.Z*q.Z + q.W*q.W)
}
QuatLength returns the length of the quaternion.
package math
import (
	"fmt"
)
type Quat struct {
	X, Y, Z, W float32
}
var QuatIdentity = Quat{0, 0, 0, 1}
func (q *Quat) String() string {
	return fmt.Sprintf("[%v,%v,%v,%v]", q.X, q.Y, q.Z, q.W)
}