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

Method normalize3

src/main/java/field/linalg/Vec4.java:891–898  ·  view source on GitHub ↗

Normalize this vector by computing only the norm of (x, y, z) . @return this

()

Source from the content-addressed store, hash-verified

889 *
890 * @return this
891 */
892 public Vec4 normalize3() {
893 double d = Math.sqrt(x * x + y * y + z * z);
894 x /= d;
895 y /= d;
896 z /= d;
897 w /= d;
898 return this;
899 }
900
901 /**

Callers 1

frustumPlaneMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected