pub struct Circle<'m> { /* private fields */ }Expand description
A borrowed view of an IfcCircle.
Implementations§
Source§impl<'m> Circle<'m>
impl<'m> Circle<'m>
Sourcepub fn position_ref(&self) -> GeometryResult<EntityId>
pub fn position_ref(&self) -> GeometryResult<EntityId>
The IfcAxis2Placement reference locating the circle.
May resolve to either an IfcAxis2Placement2D or an
IfcAxis2Placement3D; the select is not narrowed by the schema and
both occur in practice for the same geometry depending on whether the
circle is a profile outline or a swept directrix.
Sourcepub fn position<'v>(
&self,
model: &'v Model,
) -> GeometryResult<Axis2Placement<'v>>
pub fn position<'v>( &self, model: &'v Model, ) -> GeometryResult<Axis2Placement<'v>>
The placement as a typed view, resolved from the model.
The select is not narrowed, so the result keeps whichever of the 2D
or 3D forms the file wrote; Axis2Placement::transform handles both.
Sourcepub fn radius(&self) -> GeometryResult<f64>
pub fn radius(&self) -> GeometryResult<f64>
The radius, guaranteed positive.
A zero or negative radius is crate::GeometryError::Degenerate: the
file parses but the circle does not exist.
Trait Implementations§
Auto Trait Implementations§
impl<'m> Freeze for Circle<'m>
impl<'m> RefUnwindSafe for Circle<'m>
impl<'m> Send for Circle<'m>
impl<'m> Sync for Circle<'m>
impl<'m> Unpin for Circle<'m>
impl<'m> UnsafeUnpin for Circle<'m>
impl<'m> UnwindSafe for Circle<'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