Returns the dot product of this vector and vector v1. @param v1 the other vector @return the dot product of this and v1
(Vec3D v1)
| 123 | * @return the dot product of this and v1 |
| 124 | */ |
| 125 | public final double dot(Vec3D v1) { |
| 126 | return(this.x*v1.x+this.y*v1.y+this.z*v1.z); |
| 127 | } |
| 128 | |
| 129 | /** |
| 130 | * Returns the squared magnitude of this vector. |