1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 #pragma once19 20 #include "[myassert.h]"21 #include "../MathGeoLibFwd.h"22 23 [MATH_BEGIN_NAMESPACE]24 25 26 template<int Cols>27 class [MatrixProxy]28 {29 private:30 float v[Cols];31 32 public:33 [CONST_WIN32] float [operator[]](int col) const34 {35 [assert](col >= 0);36 [assert](col < Cols);37 38 return v[col];39 }40 float &[operator[]](int col)41 {42 [assert](col >= 0);43 [assert](col < Cols);44 45 return v[col];46 }47 };48 49 [MATH_END_NAMESPACE] Go back to previous page