pub struct GaussianPrimitive {
pub mean: Vec3<f32>,
pub scale: Vec3<f32>,
pub rotation: Quat<f32>,
pub opacity: f32,
pub color: [f32; 3],
}Expand description
One anisotropic Gaussian primitive.
Fields§
§mean: Vec3<f32>Mean position.
scale: Vec3<f32>Per-axis scale.
rotation: Quat<f32>Orientation quaternion.
opacity: f32Opacity in [0, 1].
color: [f32; 3]RGB color in [0, 1].
Trait Implementations§
Source§impl Clone for GaussianPrimitive
impl Clone for GaussianPrimitive
Source§fn clone(&self) -> GaussianPrimitive
fn clone(&self) -> GaussianPrimitive
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 GaussianPrimitive
impl Debug for GaussianPrimitive
Source§impl PartialEq for GaussianPrimitive
impl PartialEq for GaussianPrimitive
Source§fn eq(&self, other: &GaussianPrimitive) -> bool
fn eq(&self, other: &GaussianPrimitive) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GaussianPrimitive
Auto Trait Implementations§
impl Freeze for GaussianPrimitive
impl RefUnwindSafe for GaussianPrimitive
impl Send for GaussianPrimitive
impl Sync for GaussianPrimitive
impl Unpin for GaussianPrimitive
impl UnsafeUnpin for GaussianPrimitive
impl UnwindSafe for GaussianPrimitive
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