|
|
|
@ -8,14 +8,14 @@ |
|
|
|
|
/// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
|
/// copies of the Software, and to permit persons to whom the Software is
|
|
|
|
|
/// furnished to do so, subject to the following conditions:
|
|
|
|
|
///
|
|
|
|
|
///
|
|
|
|
|
/// The above copyright notice and this permission notice shall be included in
|
|
|
|
|
/// all copies or substantial portions of the Software.
|
|
|
|
|
///
|
|
|
|
|
///
|
|
|
|
|
/// Restrictions:
|
|
|
|
|
/// By making use of the Software for military purposes, you choose to make
|
|
|
|
|
/// a Bunny unhappy.
|
|
|
|
|
///
|
|
|
|
|
///
|
|
|
|
|
/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
|
/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
|
/// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
@ -50,6 +50,18 @@ namespace glm |
|
|
|
|
typedef tmat4x3<T, P> transpose_type; |
|
|
|
|
typedef T value_type; |
|
|
|
|
|
|
|
|
|
# if GLM_HAS_CONSTEXPR |
|
|
|
|
static GLM_CONSTEXPR length_t components = 3; |
|
|
|
|
static GLM_CONSTEXPR length_t cols = 4; |
|
|
|
|
static GLM_CONSTEXPR length_t rows = 3; |
|
|
|
|
static GLM_CONSTEXPR precision prec = P; |
|
|
|
|
# else |
|
|
|
|
static const length_t components = 3; |
|
|
|
|
static const length_t cols = 4; |
|
|
|
|
static const length_t rows = 3; |
|
|
|
|
static const precision prec = P; |
|
|
|
|
# endif |
|
|
|
|
|
|
|
|
|
private: |
|
|
|
|
/// @cond DETAIL
|
|
|
|
|
col_type value[3]; |
|
|
|
@ -83,7 +95,7 @@ namespace glm |
|
|
|
|
X1 const & x1, Y1 const & y1, Z1 const & z1, W1 const & w1, |
|
|
|
|
X2 const & x2, Y2 const & y2, Z2 const & z2, W2 const & w2, |
|
|
|
|
X3 const & x3, Y3 const & y3, Z3 const & z3, W3 const & w3); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template <typename V1, typename V2, typename V3> |
|
|
|
|
GLM_FUNC_DECL tmat3x4( |
|
|
|
|
tvec4<V1, P> const & v1, |
|
|
|
@ -132,19 +144,19 @@ namespace glm |
|
|
|
|
|
|
|
|
|
GLM_FUNC_DECL tmat3x4<T, P> & operator=(tmat3x4<T, P> const & m); |
|
|
|
|
|
|
|
|
|
template <typename U>
|
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_DECL tmat3x4<T, P> & operator=(tmat3x4<U, P> const & m); |
|
|
|
|
template <typename U>
|
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_DECL tmat3x4<T, P> & operator+=(U s); |
|
|
|
|
template <typename U>
|
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_DECL tmat3x4<T, P> & operator+=(tmat3x4<U, P> const & m); |
|
|
|
|
template <typename U>
|
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_DECL tmat3x4<T, P> & operator-=(U s); |
|
|
|
|
template <typename U>
|
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_DECL tmat3x4<T, P> & operator-=(tmat3x4<U, P> const & m); |
|
|
|
|
template <typename U>
|
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_DECL tmat3x4<T, P> & operator*=(U s); |
|
|
|
|
template <typename U>
|
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_DECL tmat3x4<T, P> & operator/=(U s); |
|
|
|
|
|
|
|
|
|
//////////////////////////////////////
|
|
|
|
@ -178,15 +190,15 @@ namespace glm |
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL typename tmat3x4<T, P>::col_type operator*(tmat3x4<T, P> const & m, typename tmat3x4<T, P>::row_type const & v); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P>
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL typename tmat3x4<T, P>::row_type operator*(typename tmat3x4<T, P>::col_type const & v, tmat3x4<T, P> const & m); |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tmat4x4<T, P> operator*(tmat3x4<T, P> const & m1, tmat4x3<T, P> const & m2); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tmat2x4<T, P> operator*(tmat3x4<T, P> const & m1, tmat2x3<T, P> const & m2); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_DECL tmat3x4<T, P> operator*(tmat3x4<T, P> const & m1, tmat3x3<T, P> const & m2); |
|
|
|
|
|
|
|
|
|