mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 12:41:54 +00:00
Clean up
This commit is contained in:
parent
0b39c3b911
commit
6a50a87a75
@ -52,15 +52,15 @@ namespace glm
|
|||||||
/// @see gtc_matrix_access
|
/// @see gtc_matrix_access
|
||||||
template <typename genType>
|
template <typename genType>
|
||||||
GLM_FUNC_DECL typename genType::row_type row(
|
GLM_FUNC_DECL typename genType::row_type row(
|
||||||
genType const & m,
|
genType const & m,
|
||||||
length_t const & index);
|
length_t index);
|
||||||
|
|
||||||
/// Set a specific row to a matrix.
|
/// Set a specific row to a matrix.
|
||||||
/// @see gtc_matrix_access
|
/// @see gtc_matrix_access
|
||||||
template <typename genType>
|
template <typename genType>
|
||||||
GLM_FUNC_DECL genType row(
|
GLM_FUNC_DECL genType row(
|
||||||
genType const & m,
|
genType const & m,
|
||||||
length_t const & index,
|
length_t index,
|
||||||
typename genType::row_type const & x);
|
typename genType::row_type const & x);
|
||||||
|
|
||||||
/// Get a specific column of a matrix.
|
/// Get a specific column of a matrix.
|
||||||
@ -68,14 +68,14 @@ namespace glm
|
|||||||
template <typename genType>
|
template <typename genType>
|
||||||
GLM_FUNC_DECL typename genType::col_type column(
|
GLM_FUNC_DECL typename genType::col_type column(
|
||||||
genType const & m,
|
genType const & m,
|
||||||
length_t const & index);
|
length_t index);
|
||||||
|
|
||||||
/// Set a specific column to a matrix.
|
/// Set a specific column to a matrix.
|
||||||
/// @see gtc_matrix_access
|
/// @see gtc_matrix_access
|
||||||
template <typename genType>
|
template <typename genType>
|
||||||
GLM_FUNC_DECL genType column(
|
GLM_FUNC_DECL genType column(
|
||||||
genType const & m,
|
genType const & m,
|
||||||
length_t const & index,
|
length_t index,
|
||||||
typename genType::col_type const & x);
|
typename genType::col_type const & x);
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
|
@ -32,7 +32,7 @@ namespace glm
|
|||||||
GLM_FUNC_QUALIFIER genType row
|
GLM_FUNC_QUALIFIER genType row
|
||||||
(
|
(
|
||||||
genType const & m,
|
genType const & m,
|
||||||
length_t const & index,
|
length_t index,
|
||||||
typename genType::row_type const & x
|
typename genType::row_type const & x
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@ -48,7 +48,7 @@ namespace glm
|
|||||||
GLM_FUNC_QUALIFIER typename genType::row_type row
|
GLM_FUNC_QUALIFIER typename genType::row_type row
|
||||||
(
|
(
|
||||||
genType const & m,
|
genType const & m,
|
||||||
length_t const & index
|
length_t index
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
assert(index >= 0 && static_cast<detail::component_count_t>(index) < detail::component_count(m[0]));
|
assert(index >= 0 && static_cast<detail::component_count_t>(index) < detail::component_count(m[0]));
|
||||||
@ -63,7 +63,7 @@ namespace glm
|
|||||||
GLM_FUNC_QUALIFIER genType column
|
GLM_FUNC_QUALIFIER genType column
|
||||||
(
|
(
|
||||||
genType const & m,
|
genType const & m,
|
||||||
length_t const & index,
|
length_t index,
|
||||||
typename genType::col_type const & x
|
typename genType::col_type const & x
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@ -78,7 +78,7 @@ namespace glm
|
|||||||
GLM_FUNC_QUALIFIER typename genType::col_type column
|
GLM_FUNC_QUALIFIER typename genType::col_type column
|
||||||
(
|
(
|
||||||
genType const & m,
|
genType const & m,
|
||||||
length_t const & index
|
length_t index
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
assert(index >= 0 && static_cast<detail::component_count_t>(index) < detail::component_count(m));
|
assert(index >= 0 && static_cast<detail::component_count_t>(index) < detail::component_count(m));
|
||||||
|
@ -61,9 +61,8 @@ namespace glm
|
|||||||
/// @param m Input matrix to invert transpose.
|
/// @param m Input matrix to invert transpose.
|
||||||
/// @tparam genType Squared floating-point matrix: half, float or double. Inverse of matrix based of half-precision floating point value is highly innacurate.
|
/// @tparam genType Squared floating-point matrix: half, float or double. Inverse of matrix based of half-precision floating point value is highly innacurate.
|
||||||
/// @see gtc_matrix_inverse
|
/// @see gtc_matrix_inverse
|
||||||
template <typename genType>
|
template <typename genType>
|
||||||
GLM_FUNC_DECL typename genType::value_type inverseTranspose(
|
GLM_FUNC_DECL genType inverseTranspose(genType const & m);
|
||||||
genType const & m);
|
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
}//namespace glm
|
}//namespace glm
|
||||||
|
Loading…
Reference in New Issue
Block a user