Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

MatMakeScale2d.h

Go to the documentation of this file.
00001 #ifndef Impala_Core_Matrix_MatMakeScale2d_h
00002 #define Impala_Core_Matrix_MatMakeScale2d_h
00003 
00004 #include "Core/Matrix/Mat.h"
00005 
00006 namespace Impala
00007 {
00008 namespace Core
00009 {
00010 namespace Matrix
00011 {
00012 
00013 
00014 inline Mat*
00015 MatMakeScale2d(double sx, double sy)
00016 {
00017     Mat* m = MatCreate<Mat>(3, 3);
00018     MatStorType* ptr = MatE(m, 0, 0);
00019     *ptr++ = sx;  *ptr++ =  0;  *ptr++ = 0;
00020     *ptr++ =  0;  *ptr++ = sy;  *ptr++ = 0;
00021     *ptr++ =  0;  *ptr++ =  0;  *ptr++ = 1;
00022     return m;
00023 }
00024 
00025 } // namespace Matrix
00026 } // namespace Core
00027 } // namespace Impala
00028 
00029 #endif

Generated on Fri Mar 19 09:31:16 2010 for ImpalaSrc by  doxygen 1.5.1