Merge branch '0.9.0' of ssh://g-truc.git.sourceforge.net/gitroot/ogl-math/ogl-math into 0.9.0

This commit is contained in:
Christophe Riccio 2010-07-07 21:16:15 +01:00
commit 66a1a0ea70
14 changed files with 45 additions and 27 deletions

View File

@ -32,7 +32,7 @@ namespace detail
size_type i
)
{
assert(i >= size_type(0) && i < col_size());
assert(i < col_size());
return this->value[i];
}
@ -43,7 +43,7 @@ namespace detail
size_type i
) const
{
assert(i >= size_type(0) && i < col_size());
assert(i < col_size());
return this->value[i];
}

View File

@ -32,7 +32,7 @@ namespace detail
size_type i
)
{
assert(i >= size_type(0) && i < col_size());
assert(i < col_size());
return this->value[i];
}
@ -43,7 +43,7 @@ namespace detail
size_type i
) const
{
assert(i >= size_type(0) && i < col_size());
assert(i < col_size());
return this->value[i];
}

View File

@ -32,7 +32,7 @@ namespace detail
size_type i
)
{
assert(i >= size_type(0) && i < col_size());
assert(i < col_size());
return this->value[i];
}
@ -43,7 +43,7 @@ namespace detail
size_type i
) const
{
assert(i >= size_type(0) && i < col_size());
assert(i < col_size());
return this->value[i];
}

View File

@ -32,7 +32,7 @@ namespace detail
size_type i
)
{
assert(i >= size_type(0) && i < col_size());
assert(i < col_size());
return this->value[i];
}
@ -43,7 +43,7 @@ namespace detail
size_type i
) const
{
assert(i >= size_type(0) && i < col_size());
assert(i < col_size());
return this->value[i];
}

View File

@ -32,7 +32,7 @@ namespace detail
size_type i
)
{
assert(i >= size_type(0) && i < col_size());
assert(i < col_size());
return this->value[i];
}
@ -43,7 +43,7 @@ namespace detail
size_type i
) const
{
assert(i >= size_type(0) && i < col_size());
assert(i < col_size());
return this->value[i];
}

View File

@ -32,7 +32,7 @@ namespace detail
size_type i
)
{
assert(i >= size_type(0) && i < col_size());
assert(i < col_size());
return this->value[i];
}
@ -43,7 +43,7 @@ namespace detail
size_type i
) const
{
assert(i >= size_type(0) && i < col_size());
assert(i < col_size());
return this->value[i];
}

View File

@ -32,7 +32,7 @@ namespace detail
size_type i
)
{
assert(i >= size_type(0) && i < col_size());
assert(i < col_size());
return this->value[i];
}
@ -43,7 +43,7 @@ namespace detail
size_type i
) const
{
assert(i >= size_type(0) && i < col_size());
assert(i < col_size());
return this->value[i];
}

View File

@ -32,7 +32,7 @@ namespace detail
size_type i
)
{
assert(i >= size_type(0) && i < col_size());
assert(i < col_size());
return this->value[i];
}
@ -43,7 +43,7 @@ namespace detail
size_type i
) const
{
assert(i >= size_type(0) && i < col_size());
assert(i < col_size());
return this->value[i];
}

View File

@ -32,7 +32,7 @@ namespace detail
size_type i
)
{
assert(i >= size_type(0) && i < col_size());
assert(i < col_size());
return this->value[i];
}
@ -43,7 +43,7 @@ namespace detail
size_type i
) const
{
assert(i >= size_type(0) && i < col_size());
assert(i < col_size());
return this->value[i];
}

View File

@ -26,7 +26,7 @@ namespace glm
size_type i
)
{
assert(i >= size_type(0) && i < value_size());
assert(i < value_size());
return (&x)[i];
}
@ -36,7 +36,7 @@ namespace glm
size_type i
) const
{
assert(i >= size_type(0) && i < value_size());
assert(i < value_size());
return (&x)[i];
}

View File

@ -27,7 +27,7 @@ namespace glm
size_type i
)
{
assert(i >= size_type(0) && i < value_size());
assert(i < value_size());
return (&x)[i];
}
@ -38,7 +38,7 @@ namespace glm
size_type i
) const
{
assert(i >= size_type(0) && i < value_size());
assert(i < value_size());
return (&x)[i];
}

View File

@ -27,7 +27,7 @@ namespace glm
size_type i
)
{
assert(i >= size_type(0) && i < value_size());
assert(i < value_size());
return (&x)[i];
}
@ -38,7 +38,7 @@ namespace glm
size_type i
) const
{
assert(i >= size_type(0) && i < value_size());
assert(i < value_size());
return (&x)[i];
}

View File

@ -27,7 +27,7 @@ namespace glm
size_type i
)
{
assert(i >= size_type(0) && i < value_size());
assert(i < value_size());
return (&x)[i];
}
@ -38,7 +38,7 @@ namespace glm
size_type i
) const
{
assert(i >= size_type(0) && i < value_size());
assert(i < value_size());
return (&x)[i];
}

View File

@ -11,7 +11,7 @@
///////////////////////////////////////////////////////////////////////////////////////////////////
#ifndef glm_gtc_swizzle
#define glm_gtc_closest_point
#define glm_gtc_swizzle
// Dependency:
#include "../glm.hpp"
@ -26,7 +26,25 @@ namespace glm
//! GLM_GTC_swizzle extension
namespace swizzle{
template <typename T>
T swizzle(
detail::tvec4<T> const & v,
comp x);
template <typename T>
detail::tvec2<T> swizzle(
detail::tvec4<T> const & v,
comp x, comp y);
template <typename T>
detail::tvec3<T> swizzle(
detail::tvec4<T> const & v,
comp x, comp y, comp z);
template <typename T>
inline detail::tref4<T> swizzle(
detail::tvec4<T> const & v,
comp x, comp y, comp z, comp w);
}//namespace swizzle
}//namespace gtc