27 #ifndef ICB_PX2DLINE_H_INCLUDED 28 #define ICB_PX2DLINE_H_INCLUDED 30 #include "engines/icb/common/px_array.h" 31 #include "engines/icb/common/px_2drealpoint.h" 38 #error "REAL_ZERO not defined in px2drealline.h" 39 #endif // #ifndef REAL_ZERO 43 typedef rcActArray<px2DRealLine> px2DRealLineArray;
49 enum IntersectionLogicVal { DONT_INTERSECT, DO_INTERSECT, COLLINEAR };
61 PXreal GetX1()
const {
return m_fX1; }
62 PXreal GetY1()
const {
return m_fY1; }
63 PXreal GetX2()
const {
return m_fX2; }
64 PXreal GetY2()
const {
return m_fY2; }
66 void SetX1(PXreal fX1) { m_fX1 = fX1; }
67 void SetY1(PXreal fY1) { m_fY1 = fY1; }
68 void SetX2(PXreal fX2) { m_fX2 = fX2; }
69 void SetY2(PXreal fY2) { m_fY2 = fY2; }
75 PXreal m_fX1, m_fY1, m_fX2, m_fY2;
78 inline bool8 SameSigns(PXreal dA, PXreal dB)
const;
81 inline bool8 px2DRealLine::SameSigns(PXreal fA, PXreal fB)
const {
97 #endif // #ifndef PX2DLINE_H_INCLUDED Definition: px_2drealline.h:46
Definition: px_2drealpoint.h:36