| 9 | { |
| 10 | |
| 11 | static float squaredDistance(const MyGUI::FloatPoint& _value, const MyGUI::FloatPoint& _other) |
| 12 | { |
| 13 | float x1 = _other.left - _value.left; |
| 14 | float y1 = _other.top - _value.top; |
| 15 | |
| 16 | return x1 * x1 + y1 * y1; |
| 17 | } |
| 18 | |
| 19 | static float getLength(const MyGUI::FloatPoint& _value) |
| 20 | { |