pub struct PointOnCurve<'m> { /* private fields */ }Expand description
A borrowed view of an IfcPointOnCurve.
The point is a parameter on a curve, not stored coordinates, so evaluating it means evaluating the basis curve. This view resolves the reference and the parameter; the evaluation belongs to the curve module.
Implementations§
Source§impl<'m> PointOnCurve<'m>
impl<'m> PointOnCurve<'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 IfcPointOnCurve.
Sourcepub fn basis_curve(&self) -> GeometryResult<EntityId>
pub fn basis_curve(&self) -> GeometryResult<EntityId>
The IfcCurve this point is parameterized on.
Sourcepub fn point_parameter(&self) -> GeometryResult<f64>
pub fn point_parameter(&self) -> GeometryResult<f64>
The curve parameter.
In the curve’s own parameter space, which for a trimmed or reparameter-
ized curve is not arc length and not normalized to 0..1.
Trait Implementations§
Source§impl<'m> Clone for PointOnCurve<'m>
impl<'m> Clone for PointOnCurve<'m>
Source§fn clone(&self) -> PointOnCurve<'m>
fn clone(&self) -> PointOnCurve<'m>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'m> Copy for PointOnCurve<'m>
Auto Trait Implementations§
impl<'m> Freeze for PointOnCurve<'m>
impl<'m> RefUnwindSafe for PointOnCurve<'m>
impl<'m> Send for PointOnCurve<'m>
impl<'m> Sync for PointOnCurve<'m>
impl<'m> Unpin for PointOnCurve<'m>
impl<'m> UnsafeUnpin for PointOnCurve<'m>
impl<'m> UnwindSafe for PointOnCurve<'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