| 3674 | ImPlot3DQuat ImPlot3DQuat::Conjugate() const { return ImPlot3DQuat(-x, -y, -z, w); } |
| 3675 | |
| 3676 | ImPlot3DQuat ImPlot3DQuat::Inverse() const { |
| 3677 | double l_squared = x * x + y * y + z * z + w * w; |
| 3678 | return ImPlot3DQuat(-x / l_squared, -y / l_squared, -z / l_squared, w / l_squared); |
| 3679 | } |
| 3680 | |
| 3681 | ImPlot3DQuat ImPlot3DQuat::operator*(const ImPlot3DQuat& rhs) const { |
| 3682 | return ImPlot3DQuat(w * rhs.x + x * rhs.w + y * rhs.z - z * rhs.y, w * rhs.y - x * rhs.z + y * rhs.w + z * rhs.x, |
no test coverage detected