Skip to content

Commit

Permalink
expose quaternion scalar
Browse files Browse the repository at this point in the history
  • Loading branch information
alemuntoni committed Oct 27, 2023
1 parent ca608cf commit 5ef35f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/vclib/space/point.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class Point

public:
/**
* @brief the Scalar type of the Point
* @brief The Scalar type of the Point.
*/
using ScalarType = Scalar;

Expand Down
9 changes: 9 additions & 0 deletions include/vclib/space/quaternion.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,18 @@ namespace vcl {
template<typename Scalar>
class Quaternion
{
template<typename S>
friend class Quaternion;

protected:
Eigen::Quaternion<Scalar> q = Eigen::Quaternion<Scalar>(1, 0, 0, 0);

public:
/**
* @brief The Scalar type of the Quaternion.
*/
using ScalarType = Scalar;

/**
* @brief Constructs a quaternion representing the identity rotation
* (w = 1, 0, 0, 0).
Expand Down

0 comments on commit 5ef35f9

Please sign in to comment.