Struct SurfacePatch
pub struct SurfacePatch { /* private fields */ }Expand description
A rectangular parameter-domain surface patch.
Implementations§
§impl SurfacePatch
impl SurfacePatch
pub const fn new(
kind: SurfaceKind,
u_extent: f64,
v_extent: f64,
) -> Option<SurfacePatch>
pub const fn new( kind: SurfaceKind, u_extent: f64, v_extent: f64, ) -> Option<SurfacePatch>
Creates a surface patch with positive finite parameter extents.
pub const fn kind(self) -> SurfaceKind
pub const fn kind(self) -> SurfaceKind
Returns the surface kind.
pub const fn parameter_area(self) -> f64
pub const fn parameter_area(self) -> f64
Returns the parameter-domain area.
Trait Implementations§
§impl Clone for SurfacePatch
impl Clone for SurfacePatch
§fn clone(&self) -> SurfacePatch
fn clone(&self) -> SurfacePatch
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for SurfacePatch
impl Debug for SurfacePatch
§impl PartialEq for SurfacePatch
impl PartialEq for SurfacePatch
impl Copy for SurfacePatch
impl StructuralPartialEq for SurfacePatch
Auto Trait Implementations§
impl Freeze for SurfacePatch
impl RefUnwindSafe for SurfacePatch
impl Send for SurfacePatch
impl Sync for SurfacePatch
impl Unpin for SurfacePatch
impl UnsafeUnpin for SurfacePatch
impl UnwindSafe for SurfacePatch
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