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

Method half

src/main/java/field/linalg/Vec2.java:1231–1234  ·  view source on GitHub ↗

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

(Vec2 other)

Source from the content-addressed store, hash-verified

1229 * @return this
1230 */
1231 public Vec2 half(Vec2 other) {
1232 return this.add(other)
1233 .normalize();
1234 }
1235
1236 /**
1237 * 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