pub trait PointConvertible<T, const SIZE: usize, const DIM: usize, const METADIM: usize>: TryInto<([T; DIM], [PointMeta; METADIM])> + TryFrom<([T; DIM], [PointMeta; METADIM])> + MetaNames<METADIM> + Clone
where T: FromBytes,
{ }
Expand description

Trait to convert a point to a tuple of coordinates and meta data. Implement this trait for your point type to use the conversion.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl PointConvertible<f32, { size_of!(f32) }, 3, 0> for PointXYZ

source§

impl PointConvertible<f32, { size_of!(f32) }, 3, 1> for PointXYZI

source§

impl PointConvertible<f32, { size_of!(f32) }, 3, 1> for PointXYZL

source§

impl PointConvertible<f32, { size_of!(f32) }, 3, 1> for PointXYZRGB

source§

impl PointConvertible<f32, { size_of!(f32) }, 3, 2> for PointXYZRGBA

source§

impl PointConvertible<f32, { size_of!(f32) }, 3, 2> for PointXYZRGBL

source§

impl PointConvertible<f32, { size_of!(f32) }, 3, 3> for PointXYZNormal

source§

impl PointConvertible<f32, { size_of!(f32) }, 3, 4> for PointXYZINormal

source§

impl PointConvertible<f32, { size_of!(f32) }, 3, 4> for PointXYZRGBNormal