pub struct Placed {
pub x: f32,
pub y: f32,
pub scale_x: f32,
pub scale_y: f32,
}Expand description
A solved placement, in SSPlayer::set_transform’s
terms: pixels from the view’s centre, y downward.
The conversion from the contract’s view coordinates (origin at the view’s
top-left) happens once, in solve. Doing it anywhere else is the mistake
that looks like a correct fit displaced by half a screen.
Fields§
§x: f32§y: f32§scale_x: f32§scale_y: f32Trait Implementations§
impl Copy for Placed
impl StructuralPartialEq for Placed
Auto Trait Implementations§
impl Freeze for Placed
impl RefUnwindSafe for Placed
impl Send for Placed
impl Sync for Placed
impl Unpin for Placed
impl UnsafeUnpin for Placed
impl UnwindSafe for Placed
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more