* Distance between this vector and another vector. * * @param vector The vector to which to calculate the distance. * @returns The distance.
(vector)
| 100 | * @returns The distance. |
| 101 | */ |
| 102 | distance(vector) { |
| 103 | const difference = vector.subtract(this) |
| 104 | return difference.length() |
| 105 | } |
| 106 | |
| 107 | /** |
| 108 | * Vector dot product |
no test coverage detected