pub struct Patch {
pub points: Box<[Point]>,
pub colors: [Rgb; 4],
}Expand description
A Coons or tensor patch: twelve or sixteen control points and four corner colours.
Fields§
§points: Box<[Point]>Control points, twelve for a Coons patch and sixteen for a tensor one.
colors: [Rgb; 4]The four corner colours.
Trait Implementations§
impl StructuralPartialEq for Patch
Auto Trait Implementations§
impl Freeze for Patch
impl RefUnwindSafe for Patch
impl Send for Patch
impl Sync for Patch
impl Unpin for Patch
impl UnsafeUnpin for Patch
impl UnwindSafe for Patch
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