pub struct PntsFeatureTable {
pub positions: Vec<f32>,
pub rgb: Option<Vec<u8>>,
pub rtc_center: Option<[f64; 3]>,
}Expand description
Feature-table data carried by one pnts tile.
Positions are stored relative to rtc_center when present; this keeps
f32 precision for tiles far from the coordinate origin.
Fields§
§positions: Vec<f32>Interleaved x,y,z positions (N*3 values) in the tile local frame.
rgb: Option<Vec<u8>>Optional interleaved r,g,b bytes (N*3 values, range 0–255).
rtc_center: Option<[f64; 3]>Optional relative-to-center vector written to the feature table.
Implementations§
Source§impl PntsFeatureTable
impl PntsFeatureTable
Sourcepub fn point_count(&self) -> usize
pub fn point_count(&self) -> usize
Returns the number of points in this tile.
Trait Implementations§
Source§impl Clone for PntsFeatureTable
impl Clone for PntsFeatureTable
Source§fn clone(&self) -> PntsFeatureTable
fn clone(&self) -> PntsFeatureTable
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 PntsFeatureTable
impl Debug for PntsFeatureTable
Source§impl PartialEq for PntsFeatureTable
impl PartialEq for PntsFeatureTable
Source§fn eq(&self, other: &PntsFeatureTable) -> bool
fn eq(&self, other: &PntsFeatureTable) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PntsFeatureTable
Auto Trait Implementations§
impl Freeze for PntsFeatureTable
impl RefUnwindSafe for PntsFeatureTable
impl Send for PntsFeatureTable
impl Sync for PntsFeatureTable
impl Unpin for PntsFeatureTable
impl UnsafeUnpin for PntsFeatureTable
impl UnwindSafe for PntsFeatureTable
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