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

Method half

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

Compute the half vector between this and the other vector. @param other the other vector @return this

(Vec3 other)

Source from the content-addressed store, hash-verified

1369 * @return this
1370 */
1371 public Vec3 half(Vec3 other) {
1372 return this.add(other)
1373 .normalize();
1374 }
1375
1376 /**
1377 * Compute the half vector between this and the vector <tt>(x, y, z)</tt>.

Callers

nothing calls this directly

Calls 3

addMethod · 0.95
setMethod · 0.65
normalizeMethod · 0.45

Tested by

no test coverage detected