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

Method normalize

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

Normalize this quaternion. @return this

()

Source from the content-addressed store, hash-verified

117 *
118 * @return this
119 */
120 public Quat normalize() {
121 double norm = Math.sqrt(x * x + y * y + z * z + w * w);
122 x /= norm;
123 y /= norm;
124 z /= norm;
125 w /= norm;
126 return this;
127 }
128
129 /**

Callers 1

nlerpMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected