1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 #pragma once19 20 #include "[float3x3.h]"21 #include "[float3x4.h]"22 #include "[float4x4.h]"23 #include "[float3.h]"24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 template<typename ForwardAxis, typename RightAxis, typename UpAxis>70 struct CoordinateAxisConvention71 {72 template<typename Matrix> static float3 Right(const Matrix &m) { return RightAxis::Pick(m); }73 template<typename Matrix> static float3 Up(const Matrix &m) { return UpAxis::Pick(m); }74 template<typename Matrix> static float3 Forward(const Matrix &m) { return ForwardAxis::Pick(m); }75 };76 77 78 79 typedef CoordinateAxisConvention<PositiveX, PositiveY, PositiveZ> XposRight_YposUp_ZposForward;80 */ Go back to previous page