#[non_exhaustive]pub struct MitreBand {
pub centre: DVec3,
pub axis: DVec3,
pub corner: DVec3,
pub normal: DVec3,
pub back: f64,
pub ahead: f64,
}Expand description
The tube of a bend next to a corner mitred beside it (#248): the torus
about the circle through corner round centre and axis, from the
square section back short of the corner to the mitre plane.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.centre: DVec3Centre of the bend’s circle.
axis: DVec3Unit axis of the bend, oriented so that a positive turn about it carries the arc toward the corner and on past it.
corner: DVec3The arc’s end at the corner. The mitre plane passes through it.
normal: DVec3Unit normal of the mitre plane, pointing away from the band: the band’s part of the exact solid has non-positive height along it.
back: f64How far the band reaches back from the corner, in radians: the
section turned by -back about axis from the corner’s lies wholly
behind the mitre plane.
ahead: f64How far past the corner the tube is continued, in radians: the
section turned by ahead lies wholly beyond the plane, and the
plane cuts every circle of the torus strictly between the two.
Implementations§
Trait Implementations§
impl Copy for MitreBand
impl StructuralPartialEq for MitreBand
Auto Trait Implementations§
impl Freeze for MitreBand
impl RefUnwindSafe for MitreBand
impl Send for MitreBand
impl Sync for MitreBand
impl Unpin for MitreBand
impl UnsafeUnpin for MitreBand
impl UnwindSafe for MitreBand
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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