pub struct SurfaceSample {
pub position: Vec3,
pub normal: Vec3,
pub uv: Vec2,
pub color: Vec4,
}Expand description
Sample point on a parametric surface.
Fields§
§position: Vec3§normal: Vec3§uv: Vec2§color: Vec4Trait Implementations§
Source§impl Clone for SurfaceSample
impl Clone for SurfaceSample
Source§fn clone(&self) -> SurfaceSample
fn clone(&self) -> SurfaceSample
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 moreAuto Trait Implementations§
impl Freeze for SurfaceSample
impl RefUnwindSafe for SurfaceSample
impl Send for SurfaceSample
impl Sync for SurfaceSample
impl Unpin for SurfaceSample
impl UnsafeUnpin for SurfaceSample
impl UnwindSafe for SurfaceSample
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