| 34 | } |
| 35 | |
| 36 | double PolygonPoint::distance(const Transform::UnitVector& position) const |
| 37 | { |
| 38 | const Transform::UnitVector pVec = position.to<Transform::Units::SceneUnits>(); |
| 39 | return std::sqrt(std::pow((pVec.x - x), 2) + std::pow((pVec.y - y), 2)); |
| 40 | } |
| 41 | |
| 42 | UnitVector PolygonPoint::getRelativePosition(RelativePositionFrom from) const |
| 43 | { |
no outgoing calls
no test coverage detected