MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / pivot

Method pivot

src/elements.rs:347–352  ·  view source on GitHub ↗
(&mut self, pivot: impl Into<Vector2>)

Source from the content-addressed store, hash-verified

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]

Calls

no outgoing calls