1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
mod line;
mod point;
mod rectangle;
mod triangle;
pub use line::{Line, Line3D};
pub use point::{Point, Point3D};
pub use triangle::Triangle;
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct Square {
pub x: f32,
pub y: f32,
pub side: f32,
}
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct Rectangle {
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
}
#[derive(Debug, Copy, Clone)]
pub struct Circle {
pub x: f32,
pub y: f32,
pub radius: f32,
}