circle 0.1.9

Definition of circle and ellipse
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::*;
use crate::GraphicsShape;

impl From<(f32, f32)> for Point {
    fn from(point: (f32, f32)) -> Self {
        Self { x: point.0 as f32, y: point.1 as f32, ..Default::default() }
    }
}

impl From<Point> for GraphicsShape {
    fn from(v: Point) -> Self {
        Self::Point(v)
    }
}