MCPcopy Create free account
hub / github.com/brenocq/implot3d / Inverse

Method Inverse

implot3d.cpp:3676–3679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3674ImPlot3DQuat ImPlot3DQuat::Conjugate() const { return ImPlot3DQuat(-x, -y, -z, w); }
3675
3676ImPlot3DQuat 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
3681ImPlot3DQuat 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,

Callers 2

PixelsToNDCRayFunction · 0.80
HandleInputFunction · 0.80

Calls 1

ImPlot3DQuatClass · 0.85

Tested by

no test coverage detected