pub struct GaussianSplat {
pub center: [f64; 3],
pub color: [f32; 3],
pub opacity: f32,
pub scale: [f32; 3],
pub point_count: usize,
pub label: String,
pub trajectory: Vec<[f64; 3]>,
}Expand description
A single 3-D Gaussian suitable for splatting-based rendering.
Fields§
§center: [f64; 3]Centre of the Gaussian in world coordinates.
color: [f32; 3]RGB colour in [0, 1].
opacity: f32Opacity in [0, 1].
scale: [f32; 3]Anisotropic scale along each axis.
point_count: usizeNumber of raw points that contributed to this Gaussian.
label: StringSemantic label (e.g. "obstacle", "ground").
trajectory: Vec<[f64; 3]>Temporal trajectory: each entry is a position at a successive timestep. Empty for static Gaussians.
Trait Implementations§
Source§impl Clone for GaussianSplat
impl Clone for GaussianSplat
Source§fn clone(&self) -> GaussianSplat
fn clone(&self) -> GaussianSplat
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 GaussianSplat
impl Debug for GaussianSplat
Source§impl<'de> Deserialize<'de> for GaussianSplat
impl<'de> Deserialize<'de> for GaussianSplat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GaussianSplat
impl PartialEq for GaussianSplat
Source§impl Serialize for GaussianSplat
impl Serialize for GaussianSplat
impl StructuralPartialEq for GaussianSplat
Auto Trait Implementations§
impl Freeze for GaussianSplat
impl RefUnwindSafe for GaussianSplat
impl Send for GaussianSplat
impl Sync for GaussianSplat
impl Unpin for GaussianSplat
impl UnsafeUnpin for GaussianSplat
impl UnwindSafe for GaussianSplat
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