File indexing completed on 2025-01-18 10:02:58
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef _Aspect_FrustumLRBT_HeaderFile
0015 #define _Aspect_FrustumLRBT_HeaderFile
0016
0017
0018 template<typename Elem_t>
0019 struct Aspect_FrustumLRBT
0020 {
0021 Elem_t Left;
0022 Elem_t Right;
0023 Elem_t Bottom;
0024 Elem_t Top;
0025
0026
0027 Aspect_FrustumLRBT() : Left (0), Right (0), Bottom (0), Top (0) {}
0028
0029
0030 template<typename Other_t>
0031 explicit Aspect_FrustumLRBT (const Aspect_FrustumLRBT<Other_t>& theOther)
0032 : Left (static_cast<Elem_t> (theOther.Left)),
0033 Right (static_cast<Elem_t> (theOther.Right)),
0034 Bottom(static_cast<Elem_t> (theOther.Bottom)),
0035 Top (static_cast<Elem_t> (theOther.Top)) {}
0036
0037
0038 void Multiply (Elem_t theScale)
0039 {
0040 Left *= theScale;
0041 Right *= theScale;
0042 Bottom *= theScale;
0043 Top *= theScale;
0044 }
0045
0046
0047 Aspect_FrustumLRBT<Elem_t> Multiplied (Elem_t theScale)
0048 {
0049 Aspect_FrustumLRBT<Elem_t> aCopy (*this);
0050 aCopy.Multiply (theScale);
0051 return aCopy;
0052 }
0053 };
0054
0055 #endif