Length returns the length of this vector.
()
| 354 | |
| 355 | // Length returns the length of this vector. |
| 356 | func (v *Vector3) Length() float32 { |
| 357 | |
| 358 | return Sqrt(v.X*v.X + v.Y*v.Y + v.Z*v.Z) |
| 359 | } |
| 360 | |
| 361 | // Normalize normalizes this vector so its length will be 1. |
| 362 | // Returns the pointer to this updated vector. |
no test coverage detected