pub struct SphericalSurface<'m> { /* private fields */ }Expand description
A borrowed view of an IfcSphericalSurface.
Implementations§
Source§impl<'m> SphericalSurface<'m>
impl<'m> SphericalSurface<'m>
Sourcepub fn new(id: EntityId, entity: &'m Entity) -> Self
pub fn new(id: EntityId, entity: &'m Entity) -> Self
Wrap an entity known to be an IfcSphericalSurface.
Sourcepub fn position_ref(&self) -> GeometryResult<EntityId>
pub fn position_ref(&self) -> GeometryResult<EntityId>
The placement; local Z runs through the poles.
Sourcepub fn position<'v>(
&self,
model: &'v Model,
) -> GeometryResult<Axis2Placement3D<'v>>
pub fn position<'v>( &self, model: &'v Model, ) -> GeometryResult<Axis2Placement3D<'v>>
The placement as a typed view, resolved from the model.
Self::position_ref returns the raw reference; this resolves it
so callers read location/axis/RefDirection without re-entering the
model themselves. A dangling reference is MissingEntity naming this
surface; any target other than an IfcAxis2Placement3D is
WrongEntityType naming the target.
Sourcepub fn radius(&self) -> GeometryResult<f64>
pub fn radius(&self) -> GeometryResult<f64>
The radius, guaranteed positive.
Sourcepub fn parameter_kinds(&self) -> (ParameterKind, ParameterKind)
pub fn parameter_kinds(&self) -> (ParameterKind, ParameterKind)
Both parameters are angles: longitude and latitude.
Trait Implementations§
Source§impl<'m> Clone for SphericalSurface<'m>
impl<'m> Clone for SphericalSurface<'m>
impl<'m> Copy for SphericalSurface<'m>
Auto Trait Implementations§
impl<'m> Freeze for SphericalSurface<'m>
impl<'m> RefUnwindSafe for SphericalSurface<'m>
impl<'m> Send for SphericalSurface<'m>
impl<'m> Sync for SphericalSurface<'m>
impl<'m> Unpin for SphericalSurface<'m>
impl<'m> UnsafeUnpin for SphericalSurface<'m>
impl<'m> UnwindSafe for SphericalSurface<'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