theta_chart/coord/
circle.rs

1use crate::coord::Point;
2#[derive(Debug, Clone, Default)]
3/// Store data for rectangle on chart
4pub struct Circle {
5    origin: Point,
6    radius: f64,
7}
8
9impl Circle {
10    pub fn new(origin: Point, radius: f64) -> Self {
11        Self { origin, radius }
12    }
13
14    pub fn get_origin(&self) -> Point {
15        self.origin.clone()
16    }
17
18    pub fn get_radius(&self) -> f64 {
19        self.radius
20    }
21}