Trait vecfx::VecFloatAs3D

source ·
pub trait VecFloatAs3D {
    // Required methods
    fn as_3d(&self) -> &[[f64; 3]];
    fn as_mut_3d(&mut self) -> &mut [[f64; 3]];
}
Expand description

View a flat slice as nested 3D array

Panics

if the slice size is incorrect.

Required Methods§

source

fn as_3d(&self) -> &[[f64; 3]]

View &[f64] as &[[f64; 3]] without copying.

source

fn as_mut_3d(&mut self) -> &mut [[f64; 3]]

View &mut [f64] as &mut [[f64; 3]] without copying.

Implementations on Foreign Types§

source§

impl VecFloatAs3D for [f64]

source§

fn as_3d(&self) -> &[[f64; 3]]

source§

fn as_mut_3d(&mut self) -> &mut [[f64; 3]]

Implementors§