|
|
@ -40,7 +40,6 @@ namespace detail |
|
|
|
template <typename T, precision P> |
|
|
|
template <typename T, precision P> |
|
|
|
struct tmat2x2 |
|
|
|
struct tmat2x2 |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Implementation detail
|
|
|
|
|
|
|
|
enum ctor{_null}; |
|
|
|
enum ctor{_null}; |
|
|
|
typedef T value_type; |
|
|
|
typedef T value_type; |
|
|
|
typedef std::size_t size_type; |
|
|
|
typedef std::size_t size_type; |
|
|
@ -54,15 +53,17 @@ namespace detail |
|
|
|
|
|
|
|
|
|
|
|
GLM_FUNC_DECL GLM_CONSTEXPR length_t length() const; |
|
|
|
GLM_FUNC_DECL GLM_CONSTEXPR length_t length() const; |
|
|
|
|
|
|
|
|
|
|
|
public: |
|
|
|
friend tmat2x2<T, P> inverse(tmat2x2<T, P> const & m); |
|
|
|
// Implementation detail
|
|
|
|
friend col_type operator/(tmat2x2<T, P> const & m, row_type const & v); |
|
|
|
GLM_FUNC_DECL tmat2x2<T, P> _inverse() const; |
|
|
|
friend row_type operator/(row_type const & v, tmat2x2<T, P> const & m); |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
|
//////////////////////////////////////
|
|
|
|
/// @cond DETAIL
|
|
|
|
// Implementation detail
|
|
|
|
|
|
|
|
col_type value[2]; |
|
|
|
col_type value[2]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GLM_FUNC_DECL tmat2x2<T, P> _inverse() const; |
|
|
|
|
|
|
|
/// @endcond
|
|
|
|
|
|
|
|
|
|
|
|
public: |
|
|
|
public: |
|
|
|
//////////////////////////////////////
|
|
|
|
//////////////////////////////////////
|
|
|
|
// Constructors
|
|
|
|
// Constructors
|
|
|
|