pub struct SpzGaussian {
pub position: SpzGaussianPosition,
pub scale: [u8; 3],
pub rotation: SpzGaussianRotation,
pub alpha: u8,
pub color: [u8; 3],
pub sh: SpzGaussianSh,
}Expand description
A single SPZ Gaussian.
This is usually only used for SpzGaussians::from_iter.
Fields§
§position: SpzGaussianPosition§scale: [u8; 3]§rotation: SpzGaussianRotation§alpha: u8§color: [u8; 3]§sh: SpzGaussianShImplementations§
Source§impl SpzGaussian
impl SpzGaussian
Sourcepub fn as_ref(&self) -> SpzGaussianRef<'_>
pub fn as_ref(&self) -> SpzGaussianRef<'_>
Get a SpzGaussianRef reference to this Gaussian.
Trait Implementations§
Source§impl Clone for SpzGaussian
impl Clone for SpzGaussian
Source§fn clone(&self) -> SpzGaussian
fn clone(&self) -> SpzGaussian
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 moreSource§impl Debug for SpzGaussian
impl Debug for SpzGaussian
Source§impl PartialEq for SpzGaussian
impl PartialEq for SpzGaussian
impl StructuralPartialEq for SpzGaussian
Auto Trait Implementations§
impl Freeze for SpzGaussian
impl RefUnwindSafe for SpzGaussian
impl Send for SpzGaussian
impl Sync for SpzGaussian
impl Unpin for SpzGaussian
impl UnwindSafe for SpzGaussian
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more