mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 18:24:35 +00:00
Removed detail implementation
This commit is contained in:
parent
0fc7aeeed8
commit
afad865399
@ -53,7 +53,7 @@ namespace glm
|
||||
namespace glm{
|
||||
namespace detail
|
||||
{
|
||||
//! Internal class for implementing swizzle operators
|
||||
// Internal class for implementing swizzle operators
|
||||
template <typename T, int N>
|
||||
struct _swizzle_base0
|
||||
{
|
||||
@ -92,7 +92,7 @@ namespace detail
|
||||
V operator ()() const { return V(this->elem(E0), this->elem(E1), this->elem(E2), this->elem(E3)); }
|
||||
};
|
||||
|
||||
//! Internal class for implementing swizzle operators
|
||||
// Internal class for implementing swizzle operators
|
||||
/*!
|
||||
Template parameters:
|
||||
|
||||
@ -183,7 +183,7 @@ namespace detail
|
||||
}
|
||||
};
|
||||
|
||||
//! Specialization for swizzles containing duplicate elements. These cannot be modified.
|
||||
// Specialization for swizzles containing duplicate elements. These cannot be modified.
|
||||
template <typename ValueType, typename VecType, int N, int E0, int E1, int E2, int E3>
|
||||
struct _swizzle_base2<ValueType,VecType,N,E0,E1,E2,E3,1> : public _swizzle_base1<ValueType,VecType,E0,E1,E2,E3,N>
|
||||
{
|
||||
|
@ -48,34 +48,34 @@ namespace detail
|
||||
template <typename T> struct tmat4x3;
|
||||
template <typename T> struct tmat4x4;
|
||||
|
||||
//! \brief Template for 2 * 2 matrix of floating-point numbers.
|
||||
//! \ingroup core_template
|
||||
// @brief Template for 2 * 2 matrix of floating-point numbers.
|
||||
// @ingroup core_template
|
||||
template <typename T>
|
||||
struct tmat2x2
|
||||
{
|
||||
// Implementation detail
|
||||
enum ctor{null};
|
||||
typedef T value_type;
|
||||
typedef std::size_t size_type;
|
||||
typedef tvec2<T> col_type;
|
||||
typedef tvec2<T> row_type;
|
||||
GLM_FUNC_DECL size_type length() const;
|
||||
static GLM_FUNC_DECL size_type col_size();
|
||||
static GLM_FUNC_DECL size_type row_size();
|
||||
|
||||
typedef tmat2x2<T> type;
|
||||
typedef tmat2x2<T> transpose_type;
|
||||
|
||||
|
||||
GLM_FUNC_DECL size_type length() const;
|
||||
|
||||
public:
|
||||
/// Implementation detail
|
||||
/// @cond DETAIL
|
||||
// Implementation detail
|
||||
GLM_FUNC_DECL tmat2x2<T> _inverse() const;
|
||||
/// @endcond
|
||||
|
||||
private:
|
||||
//////////////////////////////////////
|
||||
// Data
|
||||
// Implementation detail
|
||||
col_type value[2];
|
||||
|
||||
|
||||
public:
|
||||
//////////////////////////////////////
|
||||
// Constructors
|
||||
|
@ -48,8 +48,8 @@ namespace detail
|
||||
template <typename T> struct tmat4x3;
|
||||
template <typename T> struct tmat4x4;
|
||||
|
||||
//! \brief Template for 2 columns and 3 rows matrix of floating-point numbers.
|
||||
//! \ingroup core_template
|
||||
// \brief Template for 2 columns and 3 rows matrix of floating-point numbers.
|
||||
// \ingroup core_template
|
||||
template <typename T>
|
||||
struct tmat2x3
|
||||
{
|
||||
|
@ -48,8 +48,8 @@ namespace detail
|
||||
template <typename T> struct tmat4x3;
|
||||
template <typename T> struct tmat4x4;
|
||||
|
||||
//! Template for 2 columns and 4 rows matrix of floating-point numbers.
|
||||
//! \ingroup core_template
|
||||
// Template for 2 columns and 4 rows matrix of floating-point numbers.
|
||||
// \ingroup core_template
|
||||
template <typename T>
|
||||
struct tmat2x4
|
||||
{
|
||||
|
@ -48,8 +48,8 @@ namespace detail
|
||||
template <typename T> struct tmat4x3;
|
||||
template <typename T> struct tmat4x4;
|
||||
|
||||
//! \brief Template for 3 columns and 2 rows matrix of floating-point numbers.
|
||||
//! \ingroup core_template
|
||||
// \brief Template for 3 columns and 2 rows matrix of floating-point numbers.
|
||||
// \ingroup core_template
|
||||
template <typename T>
|
||||
struct tmat3x2
|
||||
{
|
||||
|
@ -48,8 +48,8 @@ namespace detail
|
||||
template <typename T> struct tmat4x3;
|
||||
template <typename T> struct tmat4x4;
|
||||
|
||||
//! @brief Template for 3 * 3 matrix of floating-point numbers.
|
||||
//! @ingroup core_template
|
||||
// @brief Template for 3 * 3 matrix of floating-point numbers.
|
||||
// @ingroup core_template
|
||||
template <typename T>
|
||||
struct tmat3x3
|
||||
{
|
||||
|
@ -48,8 +48,8 @@ namespace detail
|
||||
template <typename T> struct tmat4x3;
|
||||
template <typename T> struct tmat4x4;
|
||||
|
||||
//! \brief Template for 3 columns and 4 rows matrix of floating-point numbers.
|
||||
//! \ingroup core_template
|
||||
// \brief Template for 3 columns and 4 rows matrix of floating-point numbers.
|
||||
// \ingroup core_template
|
||||
template <typename T>
|
||||
struct tmat3x4
|
||||
{
|
||||
|
@ -48,8 +48,8 @@ namespace detail
|
||||
template <typename T> struct tmat4x3;
|
||||
template <typename T> struct tmat4x4;
|
||||
|
||||
//! \brief Template for 4 columns and 2 rows matrix of floating-point numbers.
|
||||
//! \ingroup core_template
|
||||
// \brief Template for 4 columns and 2 rows matrix of floating-point numbers.
|
||||
// \ingroup core_template
|
||||
template <typename T>
|
||||
struct tmat4x2
|
||||
{
|
||||
|
@ -48,8 +48,8 @@ namespace detail
|
||||
template <typename T> struct tmat4x3;
|
||||
template <typename T> struct tmat4x4;
|
||||
|
||||
//! \brief Template for 4 columns and 3 rows matrix of floating-point numbers.
|
||||
//! \ingroup core_template
|
||||
// \brief Template for 4 columns and 3 rows matrix of floating-point numbers.
|
||||
// \ingroup core_template
|
||||
template <typename T>
|
||||
struct tmat4x3
|
||||
{
|
||||
|
@ -48,8 +48,8 @@ namespace detail
|
||||
template <typename T> struct tmat4x3;
|
||||
template <typename T> struct tmat4x4;
|
||||
|
||||
//! \brief Template for 4 * 4 matrix of floating-point numbers.
|
||||
//! \ingroup core_template
|
||||
// \brief Template for 4 * 4 matrix of floating-point numbers.
|
||||
// \ingroup core_template
|
||||
template <typename T>
|
||||
struct tmat4x4
|
||||
{
|
||||
|
@ -44,8 +44,8 @@ namespace detail
|
||||
template <typename T> struct tvec3;
|
||||
template <typename T> struct tvec4;
|
||||
|
||||
//! The basic 2D vector type.
|
||||
//! \ingroup core_template
|
||||
// The basic 2D vector type.
|
||||
// \ingroup core_template
|
||||
template <typename T>
|
||||
struct tvec2
|
||||
{
|
||||
|
@ -44,8 +44,8 @@ namespace detail
|
||||
template <typename T> struct tvec2;
|
||||
template <typename T> struct tvec4;
|
||||
|
||||
//! Basic 3D vector type.
|
||||
//! \ingroup core_template
|
||||
// Basic 3D vector type.
|
||||
// \ingroup core_template
|
||||
template <typename T>
|
||||
struct tvec3
|
||||
{
|
||||
|
@ -44,8 +44,8 @@ namespace detail
|
||||
template <typename T> struct tvec2;
|
||||
template <typename T> struct tvec3;
|
||||
|
||||
/// Basic 4D vector type.
|
||||
/// @ingroup core_template
|
||||
// Basic 4D vector type.
|
||||
// @ingroup core_template
|
||||
template <typename T>
|
||||
struct tvec4
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user