Return the distance between this vector and v . @param v the other vector @return the distance
(Vec3 v)
| 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>. |
no outgoing calls
no test coverage detected