13 lines
231 B
Rust
13 lines
231 B
Rust
use num_traits::Num;
|
|
pub mod wgs84;
|
|
|
|
pub type ScreenCoord = (f64, f64);
|
|
|
|
pub trait Coord<T: Num> {
|
|
fn map(&self, axis_1: T, axis_2: T) -> ScreenCoord;
|
|
|
|
fn dim1_range(&self) -> (T, T);
|
|
fn dim2_range(&self) -> (T, T);
|
|
|
|
}
|