| 53 | } |
| 54 | |
| 55 | void Rectangle::Scale(float scale) |
| 56 | { |
| 57 | const Float2 toExpand = Size * (scale - 1.0f) * 0.5f; |
| 58 | Location -= toExpand * 0.5f; |
| 59 | Size += toExpand; |
| 60 | } |
| 61 | |
| 62 | Rectangle Rectangle::MakeScaled(float scale) const |
| 63 | { |
no outgoing calls
no test coverage detected