equal
deleted
inserted
replaced
178 { |
178 { |
179 os << "(" << z.x << ", " << z.y << ")"; |
179 os << "(" << z.x << ", " << z.y << ")"; |
180 return os; |
180 return os; |
181 } |
181 } |
182 |
182 |
|
183 ///Rotate by 90 degrees |
|
184 |
|
185 ///Returns its parameter rotated by 90 degrees in positive direction. |
|
186 ///\relates xy |
|
187 /// |
|
188 template<typename T> |
|
189 inline xy<T> rot90(const xy<T> &z) |
|
190 { |
|
191 return xy<T>(-z.y,z.x); |
|
192 } |
|
193 |
|
194 ///Rotate by 270 degrees |
|
195 |
|
196 ///Returns its parameter rotated by 90 degrees in negative direction. |
|
197 ///\relates xy |
|
198 /// |
|
199 template<typename T> |
|
200 inline xy<T> rot270(const xy<T> &z) |
|
201 { |
|
202 return xy<T>(z.y,-z.x); |
|
203 } |
|
204 |
|
205 |
183 |
206 |
184 /// A class to calculate or store the bounding box of plainvectors. |
207 /// A class to calculate or store the bounding box of plainvectors. |
185 |
208 |
186 /// A class to calculate or store the bounding box of plainvectors. |
209 /// A class to calculate or store the bounding box of plainvectors. |
187 /// |
210 /// |