pub struct LayoutPosition {
pub pos: Pos2,
pub angle: f32,
pub scale: [f32; 2],
}Expand description
Where a fixture sits inside one layout. Every layout keeps its own position per fixture, so a layout may arrange fixtures however it likes.
The definition’s physical size is authoritative: scale is a deviation from
it, per axis, so a layout may deliberately distort a fixture.
Fields§
§pos: Pos2§angle: f32§scale: [f32; 2]Implementations§
Trait Implementations§
Source§impl Clone for LayoutPosition
impl Clone for LayoutPosition
impl Copy for LayoutPosition
Source§impl Debug for LayoutPosition
impl Debug for LayoutPosition
Source§impl Default for LayoutPosition
impl Default for LayoutPosition
Source§impl<'de> Deserialize<'de> for LayoutPosition
impl<'de> Deserialize<'de> for LayoutPosition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LayoutPosition
impl PartialEq for LayoutPosition
Source§impl Serialize for LayoutPosition
impl Serialize for LayoutPosition
impl StructuralPartialEq for LayoutPosition
Auto Trait Implementations§
impl Freeze for LayoutPosition
impl RefUnwindSafe for LayoutPosition
impl Send for LayoutPosition
impl Sync for LayoutPosition
impl Unpin for LayoutPosition
impl UnsafeUnpin for LayoutPosition
impl UnwindSafe for LayoutPosition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DebugAny for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more