kittycad_modeling_cmds/shared/point/
zero.rs

1use super::{Point2d, Point3d, Point4d};
2
3impl Point2d<f64> {
4    /// Set all components to zero.
5    pub const fn zero() -> Self {
6        Self::uniform(0.0)
7    }
8}
9
10impl Point3d<f64> {
11    /// Set all components to zero.
12    pub const fn zero() -> Self {
13        Self::uniform(0.0)
14    }
15}
16
17impl Point4d<f64> {
18    /// Set all components to zero.
19    pub const fn zero() -> Self {
20        Self::uniform(0.0)
21    }
22}