kittycad_modeling_cmds/shared/point/
zero.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use super::{Point2d, Point3d, Point4d};

impl Point2d<f64> {
    /// Set all components to zero.
    pub const fn zero() -> Self {
        Self::uniform(0.0)
    }
}

impl Point3d<f64> {
    /// Set all components to zero.
    pub const fn zero() -> Self {
        Self::uniform(0.0)
    }
}

impl Point4d<f64> {
    /// Set all components to zero.
    pub const fn zero() -> Self {
        Self::uniform(0.0)
    }
}