pub struct Line<'m> { /* private fields */ }Expand description
A borrowed view of an IfcLine.
Implementations§
Source§impl<'m> Line<'m>
impl<'m> Line<'m>
Sourcepub fn point_ref(&self) -> GeometryResult<EntityId>
pub fn point_ref(&self) -> GeometryResult<EntityId>
The IfcCartesianPoint at parameter zero.
Returned as a raw reference; Self::point resolves it.
Sourcepub fn point<'v>(&self, model: &'v Model) -> GeometryResult<CartesianPoint<'v>>
pub fn point<'v>(&self, model: &'v Model) -> GeometryResult<CartesianPoint<'v>>
The point at parameter zero as a typed view, resolved from the model.
Its dimension is the file’s own: a 2D line stays 2D until the caller
asks for CartesianPoint::coordinates_3d.
Sourcepub fn direction_vector_ref(&self) -> GeometryResult<EntityId>
pub fn direction_vector_ref(&self) -> GeometryResult<EntityId>
The IfcVector giving direction and parameter scale.
Deliberately not an IfcDirection: see the module docs on why
normalising this reference changes the meaning of trim parameters.
Trait Implementations§
Auto Trait Implementations§
impl<'m> Freeze for Line<'m>
impl<'m> RefUnwindSafe for Line<'m>
impl<'m> Send for Line<'m>
impl<'m> Sync for Line<'m>
impl<'m> Unpin for Line<'m>
impl<'m> UnsafeUnpin for Line<'m>
impl<'m> UnwindSafe for Line<'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