pub struct SurfacePatch { /* private fields */ }Expand description
A rectangular parameter-domain surface patch.
Implementations§
Source§impl SurfacePatch
impl SurfacePatch
Sourcepub const fn new(
kind: SurfaceKind,
u_extent: f64,
v_extent: f64,
) -> Option<Self>
pub const fn new( kind: SurfaceKind, u_extent: f64, v_extent: f64, ) -> Option<Self>
Creates a surface patch with positive finite parameter extents.
Sourcepub const fn kind(self) -> SurfaceKind
pub const fn kind(self) -> SurfaceKind
Returns the surface kind.
Sourcepub const fn parameter_area(self) -> f64
pub const fn parameter_area(self) -> f64
Returns the parameter-domain area.
Trait Implementations§
Source§impl Clone for SurfacePatch
impl Clone for SurfacePatch
Source§fn clone(&self) -> SurfacePatch
fn clone(&self) -> SurfacePatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SurfacePatch
impl Debug for SurfacePatch
Source§impl PartialEq for SurfacePatch
impl PartialEq for SurfacePatch
Source§fn eq(&self, other: &SurfacePatch) -> bool
fn eq(&self, other: &SurfacePatch) -> bool
Tests for
self and other values to be equal, and is used by ==.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