* Applies a matrix to a vector. The fourth component is set to 1. * Returns a vector consisting of the first * through third components of the result. * * This method multiplies the current matrix by a 4D vector (x, y, z, 1), * effectively transforming the vector using the matrix. The
({ x, y, z })
| 1440 | * } |
| 1441 | */ |
| 1442 | multiplyPoint({ x, y, z }) { |
| 1443 | const array = this.multiplyVec4(x, y, z, 1); |
| 1444 | return new Vector(array[0], array[1], array[2]); |
| 1445 | } |
| 1446 | |
| 1447 | /** |
| 1448 | * Applies a matrix to a vector. |
no test coverage detected