pub struct Ellipse<'m> { /* private fields */ }Expand description
A borrowed view of an IfcEllipse.
Implementations§
Source§impl<'m> Ellipse<'m>
impl<'m> Ellipse<'m>
Sourcepub fn position_ref(&self) -> GeometryResult<EntityId>
pub fn position_ref(&self) -> GeometryResult<EntityId>
The IfcAxis2Placement reference locating the ellipse.
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.
Its local X is the SemiAxis1 direction, so the ellipse’s orientation
is only known once this is resolved.
Sourcepub fn semi_axis_1(&self) -> GeometryResult<f64>
pub fn semi_axis_1(&self) -> GeometryResult<f64>
Semi-axis along the placement’s local X direction, guaranteed positive.
Sourcepub fn semi_axis_2(&self) -> GeometryResult<f64>
pub fn semi_axis_2(&self) -> GeometryResult<f64>
Semi-axis along the placement’s local Y direction, guaranteed positive.
May legitimately exceed Self::semi_axis_1; IFC does not order them.
Sourcepub fn semi_axes(&self) -> GeometryResult<(f64, f64)>
pub fn semi_axes(&self) -> GeometryResult<(f64, f64)>
Both semi-axes in declaration order.
Offered because a kernel almost always needs the pair together, and fetching them separately doubles the chance of a caller swapping them.
Trait Implementations§
Auto Trait Implementations§
impl<'m> Freeze for Ellipse<'m>
impl<'m> RefUnwindSafe for Ellipse<'m>
impl<'m> Send for Ellipse<'m>
impl<'m> Sync for Ellipse<'m>
impl<'m> Unpin for Ellipse<'m>
impl<'m> UnsafeUnpin for Ellipse<'m>
impl<'m> UnwindSafe for Ellipse<'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