| 108 | } |
| 109 | |
| 110 | Transform::UnitVector Polygon::getPointPosition(std::size_t index) const |
| 111 | { |
| 112 | const sf::Vector2f pixelPosition = shape.getPoint(index); |
| 113 | return Transform::UnitVector( |
| 114 | pixelPosition.x, pixelPosition.y, Transform::Units::ScenePixels); |
| 115 | } |
| 116 | |
| 117 | void Polygon::draw(sf::RenderTarget& target, sf::RenderStates states) const |
| 118 | { |
nothing calls this directly
no test coverage detected