Skip to main content

CoordinateSystem

Trait CoordinateSystem 

Source
pub trait CoordinateSystem {
    type Family;
}
Expand description

A coordinate system.

Mirrors traits::coordinate_system<Point>::type from boost/geometry/core/coordinate_system.hpp:43-49: the typedef every point exposes that identifies which coordinate system its values live in. The Family associated type is the analogue of Boost’s traits::cs_tag<Cs>::type (cs.hpp:186-225), the family-level classifier that strategies actually dispatch on.

§Examples

use geometry_cs::{Cartesian, CartesianFamily, CoordinateSystem};
// Every CS exposes its `Family`; strategies bind on the family.
fn _cartesian_family<C: CoordinateSystem<Family = CartesianFamily>>() {}
_cartesian_family::<Cartesian>();

Required Associated Types§

Source

type Family

The CS family this concrete system belongs to.

Mirrors boost::geometry::traits::cs_tag<Cs>::type (boost/geometry/core/cs.hpp:194-225).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§