00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00033
00034 #ifndef esve_engine_dim3_transform_util_hxx
00035 #define esve_engine_dim3_transform_util_hxx
00036
00037 #include <esve/engine/dim3/Transform.hxx>
00038 #include <esve/base/dim3/transform_util.hxx>
00039 #include <esve/types/pure.hxx>
00040
00041 namespace esve { namespace engine { namespace dim3 {
00042
00043 namespace transform_util {
00044
00045 inline
00046 void
00047 build_matrix( const Transform & transform,
00048 types::real matrix[16] )
00049 {
00050 base::dim3::transform_util::build_matrix(
00051 transform.rotation(),
00052 transform.translation(),
00053 transform.scaling(),
00054 matrix) ;
00055 }
00056
00057 inline
00058 types::pure
00059 apply_transform( const Transform & transform,
00060 const types::pure & z )
00061 {
00062 return
00063 base::dim3::transform_util::apply_transform(
00064 transform.rotation(),
00065 transform.translation(),
00066 transform.scaling(),
00067 z) ;
00068 }
00069
00070 template< typename T_Input_Iterator,
00071 typename T_Output_Iterator >
00072 inline
00073 void
00074 apply_transform( const Transform & transform,
00075 T_Input_Iterator input_begin,
00076 T_Input_Iterator input_end,
00077 T_Output_Iterator output_begin )
00078 {
00079 base::dim3::transform_util::apply_transform(
00080 transform.rotation(),
00081 transform.translation(),
00082 transform.scaling(),
00083 input_begin,
00084 input_end,
00085 output_begin) ;
00086 }
00087
00088 }
00089
00090 }}}
00091
00092 #endif