#[non_exhaustive]pub enum PlaneSection {
Circle(Circle3D),
Ellipse(Ellipse3D),
Line {
line: Line3D,
ray: bool,
},
Point(Point3),
Points(Vec<Point3>),
Parabola(Parabola3D),
Hyperbola(Hyperbola3D),
}Expand description
A plane’s section of an analytic surface, from exact_plane_section.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Circle(Circle3D)
A circle.
Ellipse(Ellipse3D)
An ellipse.
Line
A straight section: a cylinder’s ruling, running both ways from the
line’s origin, or with ray a cone’s ruling, running from the apex at
the line’s origin along its direction only.
Fields
Point(Point3)
The one point where the plane touches the surface.
Points(Vec<Point3>)
A sampled chain of points along the section.
Parabola(Parabola3D)
A cone’s parabola.
Hyperbola(Hyperbola3D)
The branch of a cone’s hyperbola on the cone’s one nappe, which the
hyperbola’s u_axis points to from its centre.
Trait Implementations§
Source§impl Clone for PlaneSection
impl Clone for PlaneSection
Source§impl Debug for PlaneSection
impl Debug for PlaneSection
Source§impl From<ExactIntersectionCurve> for PlaneSection
impl From<ExactIntersectionCurve> for PlaneSection
Source§fn from(curve: ExactIntersectionCurve) -> Self
fn from(curve: ExactIntersectionCurve) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PlaneSection
impl RefUnwindSafe for PlaneSection
impl Send for PlaneSection
impl Sync for PlaneSection
impl Unpin for PlaneSection
impl UnsafeUnpin for PlaneSection
impl UnwindSafe for PlaneSection
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