pub struct ArcPrism {
pub section: ArcRing,
pub bottom: f64,
pub top: f64,
}Expand description
A prism whose cross-section may contain arc edges (ADR 0050).
Separate from Prism rather than replacing it: the polygon path is
exact through integer predicates, the arc path agrees with closed forms
to machine precision. Those are different guarantees, so a caller that
wants the stronger one must not be silently moved to the weaker one.
Fields§
§section: ArcRingCross-section boundary; arcs carry a non-zero bulge.
bottom: f64Base height along z.
top: f64Top height along z.
Trait Implementations§
impl StructuralPartialEq for ArcPrism
Auto Trait Implementations§
impl Freeze for ArcPrism
impl RefUnwindSafe for ArcPrism
impl Send for ArcPrism
impl Sync for ArcPrism
impl Unpin for ArcPrism
impl UnwindSafe for ArcPrism
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more