pub struct PaintPiece {
pub corners: [[f64; 3]; 3],
pub value: u8,
}Expand description
A piece of a painted triangle, the leaf of its tree.
Fields§
§corners: [[f64; 3]; 3]The piece’s three corners, in order, each as its weights over the triangle’s corners A0, A1 and A2. The weights are multiples of a power of two, so they are exact.
value: u8The piece’s value.
Implementations§
Trait Implementations§
Source§impl Clone for PaintPiece
impl Clone for PaintPiece
impl Copy for PaintPiece
Source§impl Debug for PaintPiece
impl Debug for PaintPiece
Source§impl PartialEq for PaintPiece
impl PartialEq for PaintPiece
impl StructuralPartialEq for PaintPiece
Auto Trait Implementations§
impl Forget for PaintPiece
impl Freeze for PaintPiece
impl Move for PaintPiece
impl RefUnwindSafe for PaintPiece
impl Send for PaintPiece
impl Sync for PaintPiece
impl Unpin for PaintPiece
impl UnsafeUnpin for PaintPiece
impl UnwindSafe for PaintPiece
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