Struct rust_gpu_sdf::operators::translate::TranslateOp
source · pub struct TranslateOp<Dim> {
pub translation: Dim,
}
Expand description
Apply a positional translation to a distance field.
Fields§
§translation: Dim
Implementations§
source§impl<Dim> TranslateOp<Dim>
impl<Dim> TranslateOp<Dim>
pub fn translation(&mut self) -> &mut Dim
Trait Implementations§
source§impl<Dim: Clone> Clone for TranslateOp<Dim>
impl<Dim: Clone> Clone for TranslateOp<Dim>
source§fn clone(&self) -> TranslateOp<Dim>
fn clone(&self) -> TranslateOp<Dim>
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<Dim: Debug> Debug for TranslateOp<Dim>
impl<Dim: Debug> Debug for TranslateOp<Dim>
source§impl<Dim: Default> Default for TranslateOp<Dim>
impl<Dim: Default> Default for TranslateOp<Dim>
source§fn default() -> TranslateOp<Dim>
fn default() -> TranslateOp<Dim>
Returns the “default value” for a type. Read more
source§impl<Dim: Hash> Hash for TranslateOp<Dim>
impl<Dim: Hash> Hash for TranslateOp<Dim>
source§impl<Dim: Ord> Ord for TranslateOp<Dim>
impl<Dim: Ord> Ord for TranslateOp<Dim>
source§fn cmp(&self, other: &TranslateOp<Dim>) -> Ordering
fn cmp(&self, other: &TranslateOp<Dim>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<Dim: PartialEq> PartialEq<TranslateOp<Dim>> for TranslateOp<Dim>
impl<Dim: PartialEq> PartialEq<TranslateOp<Dim>> for TranslateOp<Dim>
source§fn eq(&self, other: &TranslateOp<Dim>) -> bool
fn eq(&self, other: &TranslateOp<Dim>) -> bool
source§impl<Dim: PartialOrd> PartialOrd<TranslateOp<Dim>> for TranslateOp<Dim>
impl<Dim: PartialOrd> PartialOrd<TranslateOp<Dim>> for TranslateOp<Dim>
source§fn partial_cmp(&self, other: &TranslateOp<Dim>) -> Option<Ordering>
fn partial_cmp(&self, other: &TranslateOp<Dim>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more