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

Method distance

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

Return the distance between this vector and v . @param v the other vector @return the distance

(Vec3 v)

Source from the content-addressed store, hash-verified

1122 * @return the distance
1123 */
1124 public double distance(Vec3 v) {
1125 return Math.sqrt((v.x - this.x) * (v.x - this.x) + (v.y - this.y) * (v.y - this.y) + (v.z - this.z) * (v.z - this.z));
1126 }
1127
1128 /**
1129 * Return the distance between <code>this</code> vector and <tt>(x, y, z)</tt>.

Callers 6

closestTMethod · 0.95
smoothToMethod · 0.95
byFixingEndpointsToMethod · 0.95
estimateMethod · 0.95
reestimateMethod · 0.95
reestimate2Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected