19 #if !defined(__NORI_TRANSFORM_H)
20 #define __NORI_TRANSFORM_H
22 #include <nori/common.h>
39 m_transform(Eigen::Matrix4f::Identity()),
40 m_inverse(Eigen::Matrix4f::Identity()) { }
46 Transform(
const Eigen::Matrix4f &trafo,
const Eigen::Matrix4f &inv)
47 : m_transform(trafo), m_inverse(inv) { }
69 return m_transform.topLeftCorner<3,3>() * v;
74 return m_inverse.topLeftCorner<3, 3>().transpose() * n;
80 return result.head<3>() / result.w();
95 Eigen::Matrix4f m_transform;
96 Eigen::Matrix4f m_inverse;
3-dimensional surface normal representation
VectorType d
Ray direction.
Scalar mint
Minimum position on the ray segment.
Scalar maxt
Maximum position on the ray segment.