Calculates the dot product of this vector with another. The dot product is defined as x1 x2+y1 y2+z1 z2. The returned value is a scalar. @param other The other vector @return dot product
(@NotNull Vector other)
| 289 | * @return dot product |
| 290 | */ |
| 291 | public double dot(@NotNull Vector other) { |
| 292 | return x * other.x + y * other.y + z * other.z; |
| 293 | } |
| 294 | |
| 295 | /** |
| 296 | * Calculates the cross product of this vector with another. The cross |
no outgoing calls
no test coverage detected