MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / invert

Method invert

src/main/java/field/linalg/Quat.java:650–657  ·  view source on GitHub ↗

Invert this quaternion and store the #normalize() normalized result in dest . @param dest will hold the result @return this

(Quat dest)

Source from the content-addressed store, hash-verified

648 * @param dest will hold the result
649 * @return this
650 */
651 public Quat invert(Quat dest) {
652 double norm = x * x + y * y + z * z + w * w;
653 dest.x = -x / norm;
654 dest.y = -y / norm;
655 dest.z = -z / norm;
656 dest.w = w / norm;
657 return this;
658 }
659
660 /**

Callers 15

__sub__Method · 0.95
__rsub__Method · 0.95
CtFunction · 0.45
RtFunction · 0.45
eFunction · 0.45
riFunction · 0.45
uiFunction · 0.45
raFunction · 0.45
d3.min.jsFile · 0.45
underscore-min.jsFile · 0.45
raphael-min.jsFile · 0.45
rFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected