Return the length of the quaternion (RP3D_FORCE_INLINE)
| 226 | |
| 227 | // Return the length of the quaternion (RP3D_FORCE_INLINE) |
| 228 | RP3D_FORCE_INLINE decimal Quaternion::length() const { |
| 229 | return std::sqrt(x*x + y*y + z*z + w*w); |
| 230 | } |
| 231 | |
| 232 | // Return the square of the length of the quaternion |
| 233 | RP3D_FORCE_INLINE decimal Quaternion::lengthSquare() const { |
nothing calls this directly
no outgoing calls
no test coverage detected