pub struct PanelPlacement {
pub panel_id: Symbol,
pub space: AnchorSpace,
pub transform: Transform3,
pub world_anchor: Option<Symbol>,
}Expand description
A persisted Viture panel placement.
Fields§
§panel_id: SymbolStable panel id.
space: AnchorSpacePose-free coordinate space for the panel.
transform: Transform3Static transform applied before device pose.
world_anchor: Option<Symbol>Optional stable world anchor id.
Implementations§
Source§impl PanelPlacement
impl PanelPlacement
Sourcepub fn new(panel_id: Symbol, space: AnchorSpace, transform: Transform3) -> Self
pub fn new(panel_id: Symbol, space: AnchorSpace, transform: Transform3) -> Self
Builds a placement without a world anchor.
Sourcepub fn with_world_anchor(self, world_anchor: Symbol) -> Self
pub fn with_world_anchor(self, world_anchor: Symbol) -> Self
Attaches a stable world anchor id.
Trait Implementations§
Source§impl Clone for PanelPlacement
impl Clone for PanelPlacement
Source§fn clone(&self) -> PanelPlacement
fn clone(&self) -> PanelPlacement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PanelPlacement
impl Debug for PanelPlacement
Source§impl PartialEq for PanelPlacement
impl PartialEq for PanelPlacement
impl StructuralPartialEq for PanelPlacement
Auto Trait Implementations§
impl Freeze for PanelPlacement
impl RefUnwindSafe for PanelPlacement
impl Send for PanelPlacement
impl Sync for PanelPlacement
impl Unpin for PanelPlacement
impl UnsafeUnpin for PanelPlacement
impl UnwindSafe for PanelPlacement
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