pub enum PlanarCurve {
Line(Line2d),
Circle(Circle2d),
Ellipse(Ellipse2d),
BSpline(BSpline2d),
Trimmed(Box<Trimmed2d>),
Offset(Box<Offset2d>),
Trig(Trig2d),
}Expand description
A curve in the plane.
Variants§
Line(Line2d)
A straight line.
Circle(Circle2d)
A circle or arc.
Ellipse(Ellipse2d)
An ellipse or arc.
BSpline(BSpline2d)
A polynomial or rational B-spline.
Trimmed(Box<Trimmed2d>)
Another planar curve restricted to a sub-interval.
Offset(Box<Offset2d>)
A curve at a constant signed distance along another’s left normal.
Trig(Trig2d)
An affine-plus-trigonometric curve: c + d·t + a·cos t + b·sin t:
the exact chart trace of an oblique analytic section on a periodic
surface.
Implementations§
Source§impl PlanarCurve
impl PlanarCurve
Sourcepub fn transformed(&self, t: &Transform2, tol: Tolerances) -> OgeomResult<Self>
pub fn transformed(&self, t: &Transform2, tol: Tolerances) -> OgeomResult<Self>
This curve moved by a planar similarity.
§Errors
OgeomError::Construction if the result
would be degenerate.
Trait Implementations§
Source§impl Clone for PlanarCurve
impl Clone for PlanarCurve
Source§fn clone(&self) -> PlanarCurve
fn clone(&self) -> PlanarCurve
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 moreSource§impl Curve2d for PlanarCurve
impl Curve2d for PlanarCurve
Source§impl Debug for PlanarCurve
impl Debug for PlanarCurve
Source§impl From<BSpline2d> for PlanarCurve
impl From<BSpline2d> for PlanarCurve
Source§impl From<Circle2d> for PlanarCurve
impl From<Circle2d> for PlanarCurve
Source§impl From<Ellipse2d> for PlanarCurve
impl From<Ellipse2d> for PlanarCurve
Source§impl From<Line2d> for PlanarCurve
impl From<Line2d> for PlanarCurve
Source§impl From<Trimmed2d> for PlanarCurve
impl From<Trimmed2d> for PlanarCurve
Source§impl PartialEq for PlanarCurve
impl PartialEq for PlanarCurve
Source§fn eq(&self, other: &PlanarCurve) -> bool
fn eq(&self, other: &PlanarCurve) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Reversible for PlanarCurve
impl Reversible for PlanarCurve
impl StructuralPartialEq for PlanarCurve
Auto Trait Implementations§
impl Freeze for PlanarCurve
impl RefUnwindSafe for PlanarCurve
impl Send for PlanarCurve
impl Sync for PlanarCurve
impl Unpin for PlanarCurve
impl UnsafeUnpin for PlanarCurve
impl UnwindSafe for PlanarCurve
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.