23 typedef _Scalar Scalar;
24 typedef Eigen::Matrix<Scalar, Dim, 1> VectorType;
25 typedef Eigen::Matrix<Scalar, Dim, Dim> MatrixType;
28 const VectorType &pos = VectorType::Zero(),
29 const VectorType& normal = VectorType::Zero()
30 ) : m_pos(pos), m_normal(normal) {}
32 PONCA_MULTIARCH [[nodiscard]]
inline const VectorType& pos()
const {
return m_pos; }
33 PONCA_MULTIARCH [[nodiscard]]
inline const VectorType& normal()
const {
return m_normal; }
34 PONCA_MULTIARCH [[nodiscard]]
inline VectorType& pos() {
return m_pos; }
35 PONCA_MULTIARCH [[nodiscard]]
inline VectorType& normal() {
return m_normal; }
38 VectorType m_pos, m_normal;
49 typedef _Scalar Scalar;
50 typedef Eigen::Matrix<Scalar, Dim, 1> VectorType;
51 typedef Eigen::Matrix<Scalar, Dim, Dim> MatrixType;
54 const VectorType &pos = VectorType::Zero()
57 PONCA_MULTIARCH [[nodiscard]]
inline const VectorType& pos()
const {
return m_pos; }
58 PONCA_MULTIARCH [[nodiscard]]
inline VectorType& pos() {
return m_pos; }
80 typedef _Scalar Scalar;
81 typedef Eigen::Matrix<Scalar, Dim, 1> VectorType;
82 typedef Eigen::Matrix<Scalar, Dim, Dim> MatrixType;
85 const Scalar* _interlacedArray,
int _pId
86 ) : m_pos (Eigen::Map< const VectorType >(_interlacedArray + Dim*2*_pId )),
87 m_normal(Eigen::Map< const VectorType >(_interlacedArray + Dim*2*_pId+Dim))
90 PONCA_MULTIARCH [[nodiscard]]
inline const Eigen::Map< const VectorType >& pos()
const {
return m_pos; }
91 PONCA_MULTIARCH [[nodiscard]]
inline const Eigen::Map< const VectorType >& normal()
const {
return m_normal; }
94 Eigen::Map< const VectorType > m_pos, m_normal;