Normalize the vector
| 217 | |
| 218 | // Normalize the vector |
| 219 | RP3D_FORCE_INLINE void Vector3::normalize() { |
| 220 | decimal l = length(); |
| 221 | if (l < MACHINE_EPSILON) { |
| 222 | return; |
| 223 | } |
| 224 | x /= l; |
| 225 | y /= l; |
| 226 | z /= l; |
| 227 | } |
| 228 | |
| 229 | // Return the corresponding absolute value vector |
| 230 | RP3D_FORCE_INLINE Vector3 Vector3::getAbsoluteVector() const { |
nothing calls this directly
no outgoing calls
no test coverage detected