pub struct TrianglePiece {
pub surface: NurbsSurface,
pub corners: [[f64; 3]; 4],
}Expand description
One tensor patch of a conversion and the bilinear map from its (s, t)
unit square into the triangle: barycentric corners [Q00, Q10, Q01, Q11],
φ(s, t) = (1−s)(1−t)Q00 + s(1−t)Q10 + (1−s)t Q01 + st Q11.
Fields§
§surface: NurbsSurface§corners: [[f64; 3]; 4]Implementations§
Source§impl TrianglePiece
impl TrianglePiece
Trait Implementations§
Source§impl Clone for TrianglePiece
impl Clone for TrianglePiece
Auto Trait Implementations§
impl !Freeze for TrianglePiece
impl !RefUnwindSafe for TrianglePiece
impl !Sync for TrianglePiece
impl Forget for TrianglePiece
impl Move for TrianglePiece
impl Send for TrianglePiece
impl Unpin for TrianglePiece
impl UnsafeUnpin for TrianglePiece
impl UnwindSafe for TrianglePiece
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