Struct saft_sdf::RgbWithDistance
source · pub struct RgbWithDistance(pub Vec4);Expand description
r, g, b, distance
Tuple Fields§
§0: Vec4Trait Implementations§
source§impl Clone for RgbWithDistance
impl Clone for RgbWithDistance
source§fn clone(&self) -> RgbWithDistance
fn clone(&self) -> RgbWithDistance
Returns a copy 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 moresource§impl Debug for RgbWithDistance
impl Debug for RgbWithDistance
source§impl Default for RgbWithDistance
impl Default for RgbWithDistance
source§fn default() -> RgbWithDistance
fn default() -> RgbWithDistance
Returns the “default value” for a type. Read more
source§impl PartialEq<RgbWithDistance> for RgbWithDistance
impl PartialEq<RgbWithDistance> for RgbWithDistance
source§fn eq(&self, other: &RgbWithDistance) -> bool
fn eq(&self, other: &RgbWithDistance) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl SignedDistance for RgbWithDistance
impl SignedDistance for RgbWithDistance
fn infinity() -> Self
fn distance(&self) -> f32
fn material(&self) -> Material
fn copy_with_distance(&self, distance: f32) -> Self
fn multiply_distance_by(&self, factor: f32) -> Self
fn new_with_distance(material: Material, distance: f32) -> Self
fn lerp(&self, b: &Self, t: f32) -> Self
fn is_distance_finite(&self) -> bool
impl Copy for RgbWithDistance
impl StructuralPartialEq for RgbWithDistance
Auto Trait Implementations§
impl RefUnwindSafe for RgbWithDistance
impl Send for RgbWithDistance
impl Sync for RgbWithDistance
impl Unpin for RgbWithDistance
impl UnwindSafe for RgbWithDistance
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