# GLM: matrix_transform.hpp Source File

- Main Page
- Namespaces
- Files

- File List

# matrix_transform.hpp

    00001
    00002 // OpenGL Mathematics Copyright (c) 2005 - 2009 G-Truc Creation (www.g-truc.net)
    00004 // Created : 2009-04-29
    00005 // Updated : 2009-04-29
    00006 // Licence : This source is under MIT License
    00007 // File    : glm/gtc/matrix_transform.hpp
    00009 // Dependency:
    00010 // - GLM core
    00011 // - GLM_GTC_matrix_operation
    00013
    00014 #ifndef glm_gtc_matrix_transform
    00015 #define glm_gtc_matrix_transform
    00016
    00017 // Dependency:
    00018 #include "../glm.hpp"
    00019 #include "../gtc/matrix_operation.hpp"
    00020
    00021 namespace glm
    00022 {
    00023         namespace test{
    00024                 bool main_gtc_matrix_transform();
    00025         }//namespace test
    00026
    00027         namespace gtc{
    00029         namespace matrix_transform
    00030         {
    00031                 using namespace gtc::matrix_operation;
    00032
    00035                 template <typename valType>
    00036                 detail::tmat4x4<valType> translate(
    00037                         detail::tmat4x4<valType> const & m,
    00038                         detail::tvec3<valType> const & v);
    00039
    00042                 template <typename valType>
    00043                 detail::tmat4x4<valType> rotate(
    00044                         detail::tmat4x4<valType> const & m,
    00045                         valType const & angle,
    00046                         detail::tvec3<valType> const & v);
    00047
    00050                 template <typename valType>
    00051                 detail::tmat4x4<valType> scale(
    00052                         detail::tmat4x4<valType> const & m,
    00053                         detail::tvec3<valType> const & v);
    00054
    00055         }//namespace matrix_transform
    00056         }//namespace gtc
    00057 }//namespace glm
    00058
    00059 #define GLM_GTC_matrix_transform namespace gtc::matrix_transform
    00060 #ifndef GLM_GTC_GLOBAL
    00061 namespace glm {using GLM_GTC_matrix_transform;}
    00062 #endif//GLM_GTC_GLOBAL
    00063
    00064 #include "matrix_transform.inl"
    00065
    00066 #endif//glm_gtc_matrix_transform