pub struct PointData {
pub points: Vec<ScenePoint>,
}Expand description
A batch of points/markers.
Fields§
§points: Vec<ScenePoint>Implementations§
Source§impl PointData
impl PointData
Sourcepub fn from_values(
positions: impl IntoIterator<Item = Vec3>,
values: impl IntoIterator<Item = f32>,
domain: (f32, f32),
map: Colormap,
) -> Self
pub fn from_values( positions: impl IntoIterator<Item = Vec3>, values: impl IntoIterator<Item = f32>, domain: (f32, f32), map: Colormap, ) -> Self
Build scatter points by colour-mapping a scalar field.
domain is the (min, max) value range that maps to the colormap’s
0.0..=1.0; pass the data’s own min/max for a full-range ramp, or a
fixed range to keep colours comparable across frames. Values outside
the domain clamp to the endpoints. Positions and values are zipped;
extras in the longer iterator are ignored.
Trait Implementations§
Source§impl GeometryData for PointData
impl GeometryData for PointData
fn compute_bounds(&self) -> Aabb
impl StructuralPartialEq for PointData
Auto Trait Implementations§
impl Freeze for PointData
impl RefUnwindSafe for PointData
impl Send for PointData
impl Sync for PointData
impl Unpin for PointData
impl UnsafeUnpin for PointData
impl UnwindSafe for PointData
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.