… | |
… | |
136 | } |
136 | } |
137 | |
137 | |
138 | inline bool operator <=(const sector &a, const sector &b) |
138 | inline bool operator <=(const sector &a, const sector &b) |
139 | { |
139 | { |
140 | return a.x <= b.x && a.y <= b.y && a.z <= b.z; |
140 | return a.x <= b.x && a.y <= b.y && a.z <= b.z; |
|
|
141 | } |
|
|
142 | |
|
|
143 | inline soffs max (const sector &a) |
|
|
144 | { |
|
|
145 | return max (a.x, max (a.y, a.z)); |
141 | } |
146 | } |
142 | |
147 | |
143 | inline sector translate (const sector &p, const sector &src, const sector &dst) |
148 | inline sector translate (const sector &p, const sector &src, const sector &dst) |
144 | { |
149 | { |
145 | return p + (dst - src); |
150 | return p + (dst - src); |