[][src]Trait signed_distance_field::distance_field::DistanceStorage

pub trait DistanceStorage {
    fn new(length: usize) -> Self;
fn get(&self, index: usize) -> f32;
fn set(&mut self, index: usize, distance: f32); }

Specifies how to store distances in memory. This library defines an f16 storage and an f32 storage.

Required methods

fn new(length: usize) -> Self

Construct a new linear storage with the specified length. All distances in this array must be initialized to INFINITY.

fn get(&self, index: usize) -> f32

fn set(&mut self, index: usize, distance: f32)

Loading content...

Implementors

impl DistanceStorage for F16DistanceStorage[src]

impl DistanceStorage for F32DistanceStorage[src]

Loading content...