pub enum Positions {
F32(Vec<Vector3<f32>>),
F64(Vec<Vector3<f64>>),
}
Expand description
An array of positions. Supports f32 and f64 data types.
Variants§
F32(Vec<Vector3<f32>>)
Uses 32 bit float for the vertex positions.
F64(Vec<Vector3<f64>>)
Uses 64 bit float for the vertex positions.
Implementations§
source§impl Positions
impl Positions
sourcepub fn into_f32(self) -> Vec<Vector3<f32>>
pub fn into_f32(self) -> Vec<Vector3<f32>>
Converts and returns all the positions as f32
data type.
sourcepub fn to_f32(&self) -> Vec<Vector3<f32>>
pub fn to_f32(&self) -> Vec<Vector3<f32>>
Clones and converts all the positions as f32
data type.
sourcepub fn into_f64(self) -> Vec<Vector3<f64>>
pub fn into_f64(self) -> Vec<Vector3<f64>>
Converts and returns all the positions as f64
data type.
sourcepub fn to_f64(&self) -> Vec<Vector3<f64>>
pub fn to_f64(&self) -> Vec<Vector3<f64>>
Clones and converts all the positions as f64
data type.
sourcepub fn compute_aabb(&self) -> AxisAlignedBoundingBox
pub fn compute_aabb(&self) -> AxisAlignedBoundingBox
Computes the AxisAlignedBoundingBox for these positions.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Positions
impl Send for Positions
impl Sync for Positions
impl Unpin for Positions
impl UnwindSafe for Positions
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