Skip to content

Commit

Permalink
Fixed missing value_type for dual quaternion, Fixed return type of du…
Browse files Browse the repository at this point in the history
…al quaternion length
  • Loading branch information
Christophe Riccio committed Jun 28, 2014
1 parent 9a3f422 commit d84fa89
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion glm/gtc/quaternion.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ namespace detail
{
enum ctor{null};

typedef T value_type;
typedef T value_type;
typedef tvec4<bool, P> bool_type;

public:
Expand Down
4 changes: 2 additions & 2 deletions glm/gtx/dual_quaternion.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ namespace detail
struct tdualquat
{
enum ctor{null};

typedef T value_type;
typedef glm::detail::tquat<T, P> part_type;

public:
glm::detail::tquat<T, P> real, dual;

GLM_FUNC_DECL GLM_CONSTEXPR int length() const;
GLM_FUNC_DECL GLM_CONSTEXPR length_t length() const;

// Constructors
GLM_FUNC_DECL tdualquat();
Expand Down
2 changes: 1 addition & 1 deletion glm/gtx/dual_quaternion.inl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace glm{
namespace detail
{
template <typename T, precision P>
GLM_FUNC_QUALIFIER GLM_CONSTEXPR int tdualquat<T, P>::length() const
GLM_FUNC_QUALIFIER GLM_CONSTEXPR length_t tdualquat<T, P>::length() const
{
return 8;
}
Expand Down
2 changes: 2 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ http://glm.g-truc.net/glm.pdf
GLM 0.9.5.5: 2014-XX-XX
--------------------------------------------------------------------------------
- Fixed std::nextafter not supported with C++11 on Android #213
- Fixed missing value_type for dual quaternion
- Fixed return type of dual quaternion length

================================================================================
GLM 0.9.5.4: 2014-06-21
Expand Down

0 comments on commit d84fa89

Please sign in to comment.