dsalgo/
polar_coordinates_trait.rs

1pub trait Polar {
2    /// radian
3
4    fn angle(&self) -> f64;
5
6    fn distance(&self) -> f64;
7}
8
9#[cfg(test)]
10
11mod tests {
12
13    #[test]
14
15    fn test() {}
16}