path_planning/
scalar.rs

1/* Copyright (C) 2020 Dylan Staatz - All Rights Reserved. */
2
3use nalgebra::RealField;
4use num_traits::{Float, FloatConst};
5
6/// A combination of the RealField trait from nalgebra and Float from num_traits
7///
8/// The main goal is to provide an interface that can switch between f32 and f64
9pub trait Scalar: RealField + Float + FloatConst + Default {}
10
11impl Scalar for f32 {}
12impl Scalar for f64 {}