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

Method normalize

src/main/java/field/linalg/Vec3.java:1047–1053  ·  view source on GitHub ↗

Normalize this vector. @return this

()

Source from the content-addressed store, hash-verified

1045 * @return this
1046 */
1047 public Vec3 normalize() {
1048 double d = length();
1049 x /= d;
1050 y /= d;
1051 z /= d;
1052 return this;
1053 }
1054
1055 /**
1056 * Normalize this vector and store the result in <code>dest</code>.

Callers 9

selectMethod · 0.95
arcMethod · 0.95
normalMethod · 0.95
translateLeftMethod · 0.95
translateInMethod · 0.95
dollyInMethod · 0.95
translateUpMethod · 0.95
smoothToMethod · 0.95
halfMethod · 0.45

Calls 1

lengthMethod · 0.95

Tested by 1

selectMethod · 0.76