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

Method angle

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

Return the angle in radians represented by this quaternion rotation. @return the angle in radians

()

Source from the content-addressed store, hash-verified

185 *
186 * @return the angle in radians
187 */
188 public double angle() {
189 double angle = 2.0 * Math.acos(w);
190 return angle <= Math.PI ? angle : 2.0 * Math.PI - angle;
191 }
192
193 /**

Callers

nothing calls this directly

Calls 1

acosMethod · 0.80

Tested by

no test coverage detected