pub struct LocalPlacement<'m> { /* private fields */ }Expand description
A borrowed view of an IfcLocalPlacement.
Implementations§
Source§impl<'m> LocalPlacement<'m>
impl<'m> LocalPlacement<'m>
Sourcepub fn new(id: EntityId, entity: &'m Entity) -> Self
pub fn new(id: EntityId, entity: &'m Entity) -> Self
Wrap an entity assumed to be an IfcLocalPlacement.
Sourcepub fn parent(&self) -> Option<EntityId>
pub fn parent(&self) -> Option<EntityId>
The parent placement, if any.
None means this placement is absolute in project coordinates.
Sourcepub fn relative_placement(&self) -> GeometryResult<EntityId>
pub fn relative_placement(&self) -> GeometryResult<EntityId>
The IfcAxis2Placement giving the offset from the parent.
Sourcepub fn local_transform(&self, model: &'m Model) -> GeometryResult<Transform>
pub fn local_transform(&self, model: &'m Model) -> GeometryResult<Transform>
This placement’s own offset, not including its parents.
Trait Implementations§
Source§impl<'m> Clone for LocalPlacement<'m>
impl<'m> Clone for LocalPlacement<'m>
Source§fn clone(&self) -> LocalPlacement<'m>
fn clone(&self) -> LocalPlacement<'m>
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 moreimpl<'m> Copy for LocalPlacement<'m>
Auto Trait Implementations§
impl<'m> Freeze for LocalPlacement<'m>
impl<'m> RefUnwindSafe for LocalPlacement<'m>
impl<'m> Send for LocalPlacement<'m>
impl<'m> Sync for LocalPlacement<'m>
impl<'m> Unpin for LocalPlacement<'m>
impl<'m> UnsafeUnpin for LocalPlacement<'m>
impl<'m> UnwindSafe for LocalPlacement<'m>
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