shape_core/elements/points/mod.rs
1use super::*;
2
3pub mod point_2d;
4pub mod point_2d_set;
5pub mod point_3d;
6
7#[cfg_attr(feature = "serde", repr(C), derive(Serialize, Deserialize))]
8#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug)]
9pub struct Point4D<T> {
10 /// x-coordinate of a 4D point
11 pub x: T,
12 /// y-coordinate of a 4D point
13 pub y: T,
14 /// z-coordinate of a 4D point
15 pub z: T,
16 /// w-coordinate of a 4D point
17 pub w: T,
18}