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