(&mut self, pivot: impl Into<Vector2>)
| 345 | /// (0.0, 0.0) = top-left corner. |
| 346 | #[inline] |
| 347 | pub fn pivot(&mut self, pivot: impl Into<Vector2>) -> &mut Self { |
| 348 | let pivot = pivot.into(); |
| 349 | self.config.pivot_x = pivot.x; |
| 350 | self.config.pivot_y = pivot.y; |
| 351 | self |
| 352 | } |
| 353 | |
| 354 | /// Flips the element horizontally (mirror across the vertical axis). |
| 355 | #[inline] |
no outgoing calls