File indexing completed on 2026-09-10 09:15:49
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()
0028 : Left(0),
0029 Right(0),
0030 Bottom(0),
0031 Top(0)
0032 {
0033 }
0034
0035
0036 template <typename Other_t>
0037 explicit Aspect_FrustumLRBT(const Aspect_FrustumLRBT<Other_t>& theOther)
0038 : Left(static_cast<Elem_t>(theOther.Left)),
0039 Right(static_cast<Elem_t>(theOther.Right)),
0040 Bottom(static_cast<Elem_t>(theOther.Bottom)),
0041 Top(static_cast<Elem_t>(theOther.Top))
0042 {
0043 }
0044
0045
0046 void Multiply(Elem_t theScale)
0047 {
0048 Left *= theScale;
0049 Right *= theScale;
0050 Bottom *= theScale;
0051 Top *= theScale;
0052 }
0053
0054
0055 Aspect_FrustumLRBT<Elem_t> Multiplied(Elem_t theScale)
0056 {
0057 Aspect_FrustumLRBT<Elem_t> aCopy(*this);
0058 aCopy.Multiply(theScale);
0059 return aCopy;
0060 }
0061 };
0062
0063 #endif