Normalize normalizes this vector so its length will be 1. Returns the pointer to this updated vector.
()
| 361 | // Normalize normalizes this vector so its length will be 1. |
| 362 | // Returns the pointer to this updated vector. |
| 363 | func (v *Vector3) Normalize() *Vector3 { |
| 364 | |
| 365 | return v.DivideScalar(v.Length()) |
| 366 | } |
| 367 | |
| 368 | // DistanceTo returns the distance of this point to other. |
| 369 | func (v *Vector3) DistanceTo(other *Vector3) float32 { |
no test coverage detected