pub struct VirtualGridIntersection<'m> { /* private fields */ }Expand description
A borrowed view of an IfcVirtualGridIntersection.
“Virtual” because the axes need not physically cross: the intersection is a computed point, optionally offset.
Implementations§
Source§impl<'m> VirtualGridIntersection<'m>
impl<'m> VirtualGridIntersection<'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 IfcVirtualGridIntersection.
Sourcepub fn axes(&self) -> GeometryResult<Vec<EntityId>>
pub fn axes(&self) -> GeometryResult<Vec<EntityId>>
The two intersecting axes.
The schema constrains this to exactly two; a file with a different count is returned as-is so the caller can report it rather than having the truth hidden here.
Sourcepub fn offsets(&self) -> GeometryResult<Vec<f64>>
pub fn offsets(&self) -> GeometryResult<Vec<f64>>
Offsets from the computed intersection.
Two or three values: along the first axis, along the second, and optionally along Z. In the file’s length unit, so unconverted.
Trait Implementations§
Source§impl<'m> Clone for VirtualGridIntersection<'m>
impl<'m> Clone for VirtualGridIntersection<'m>
impl<'m> Copy for VirtualGridIntersection<'m>
Auto Trait Implementations§
impl<'m> Freeze for VirtualGridIntersection<'m>
impl<'m> RefUnwindSafe for VirtualGridIntersection<'m>
impl<'m> Send for VirtualGridIntersection<'m>
impl<'m> Sync for VirtualGridIntersection<'m>
impl<'m> Unpin for VirtualGridIntersection<'m>
impl<'m> UnsafeUnpin for VirtualGridIntersection<'m>
impl<'m> UnwindSafe for VirtualGridIntersection<'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