pub enum Boundary2 {
Segment(Point2, Point2),
Arc {
center: Point2,
u: Vec2,
v: Vec2,
a: f64,
b: f64,
t0: f64,
t1: f64,
},
}Expand description
A piece of a region’s boundary in the plane’s 2D frame.
Variants§
Segment(Point2, Point2)
A straight segment between two points.
Arc
The arc of the ellipse center + a cos t u + b sin t v for t from
t0 to t1 (t0 < t1 <= t0 + 2 pi); a circle when a == b. u and
v are orthonormal.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Boundary2
impl RefUnwindSafe for Boundary2
impl Send for Boundary2
impl Sync for Boundary2
impl Unpin for Boundary2
impl UnsafeUnpin for Boundary2
impl UnwindSafe for Boundary2
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