pub struct QuantizedVertices {
pub u: Vec<u16>,
pub v: Vec<u16>,
pub height: Vec<u16>,
}Expand description
Quantized vertex data.
Each coordinate is quantized to 0-32767 range:
u: horizontal position (0 = west edge, 32767 = east edge)v: vertical position (0 = south edge, 32767 = north edge)height: elevation (0 = min height, 32767 = max height)
Fields§
§u: Vec<u16>Horizontal coordinates (0 = west, 32767 = east)
v: Vec<u16>Vertical coordinates (0 = south, 32767 = north)
height: Vec<u16>Height values (0 = min, 32767 = max)
Implementations§
Source§impl QuantizedVertices
impl QuantizedVertices
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Create vertices with pre-allocated capacity.
Trait Implementations§
Source§impl Clone for QuantizedVertices
impl Clone for QuantizedVertices
Source§fn clone(&self) -> QuantizedVertices
fn clone(&self) -> QuantizedVertices
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 QuantizedVertices
impl Debug for QuantizedVertices
Source§impl Default for QuantizedVertices
impl Default for QuantizedVertices
Source§fn default() -> QuantizedVertices
fn default() -> QuantizedVertices
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for QuantizedVertices
impl RefUnwindSafe for QuantizedVertices
impl Send for QuantizedVertices
impl Sync for QuantizedVertices
impl Unpin for QuantizedVertices
impl UnsafeUnpin for QuantizedVertices
impl UnwindSafe for QuantizedVertices
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