pub struct BlendCorner {
pub centre: DVec2,
pub start: DVec2,
pub end: DVec2,
pub sweep: f64,
}Expand description
Corner geometry of the fillet: where the blend starts, ends, and centres.
For a right-angled rectangle corner the interior angle is pi/2, so the
centre lies on the bisector at r / sin(pi/4) = r * sqrt(2). The
tangent points are the feet of the perpendiculars from that centre, which
land exactly r back along each adjacent edge.
Fields§
§centre: DVec2§start: DVec2§end: DVec2§sweep: f64Auto Trait Implementations§
impl Freeze for BlendCorner
impl RefUnwindSafe for BlendCorner
impl Send for BlendCorner
impl Sync for BlendCorner
impl Unpin for BlendCorner
impl UnwindSafe for BlendCorner
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> 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