| 80 | } |
| 81 | |
| 82 | template <class T> Transform::Rect BaseShape<T>::getGlobalBounds() const |
| 83 | { |
| 84 | sf::FloatRect bounds = static_cast<const T&>(*this).shape.getGlobalBounds(); |
| 85 | const auto position = Transform::UnitVector( |
| 86 | bounds.left, bounds.top, Transform::Units::ScenePixels); |
| 87 | const auto size = Transform::UnitVector( |
| 88 | bounds.width, bounds.height, Transform::Units::ScenePixels); |
| 89 | return Transform::Rect(position, size); |
| 90 | } |
| 91 | |
| 92 | template <class T> void BaseShape<T>::setRotation(float angle) |
| 93 | { |
nothing calls this directly
no test coverage detected