MCPcopy Create free account
hub / github.com/CesiumGS/cesium-native / transform

Method transform

CesiumGeometry/src/Ray.cpp:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27Ray 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
34Ray Ray::operator-() const noexcept {
35 return Ray(this->_origin, -this->_direction);

Callers 4

operator()Method · 0.45

Calls 2

normalizeFunction · 0.85
RayClass · 0.50

Tested by

no test coverage detected