Пример #1
0
func norm(a, b float32) (float32, float32) {
	vec := glm.Vector2{a, b}
	vec = vec.Nor()
	return vec.X, vec.Y
}
Пример #2
0
func divideVectorBy(v *glm.Vector2, x, y float32) {
	v.X = v.X / x
	v.Y = v.Y / y
}