pub struct BlendCorner {
pub centre: Point2,
pub start: Point2,
pub end: Point2,
pub sweep: Scalar,
}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: Point2§start: Point2§end: Point2§sweep: ScalarAuto Trait Implementations§
impl Freeze for BlendCorner
impl RefUnwindSafe for BlendCorner
impl Send for BlendCorner
impl Sync for BlendCorner
impl Unpin for BlendCorner
impl UnsafeUnpin 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