Skip to main content

CoordinatePrimitive

Trait CoordinatePrimitive 

Source
pub trait CoordinatePrimitive:
    GeometricPrimitive
    + AsRef<GeometryMeasure>
    + AsMut<GeometryMeasure>
    + Index<usize, Output = GeometryMeasure>
    + IndexMut<usize, Output = GeometryMeasure> { }
Expand description

A coordinate-bearing primitive that supports indexed scalar access.

This trait is intended for point- and vector-like values. Composite shapes such as lines, polygons, planes, and meshes should generally implement GeometricPrimitive without also implementing this trait unless they are intentionally represented as flat coordinate vectors.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§