| 25 | } |
| 26 | |
| 27 | Ray Ray::transform(const glm::dmat4x4& transformation) const noexcept { |
| 28 | return Ray( |
| 29 | glm::dvec3(transformation * glm::dvec4(this->_origin, 1.0)), |
| 30 | glm::normalize( |
| 31 | glm::dvec3(transformation * glm::dvec4(this->_direction, 0.0)))); |
| 32 | } |
| 33 | |
| 34 | Ray Ray::operator-() const noexcept { |
| 35 | return Ray(this->_origin, -this->_direction); |
no test coverage detected