diff --git a/src/kernel/topology/vertices.rs b/src/kernel/topology/vertices.rs index ff121db7c..87c7ce924 100644 --- a/src/kernel/topology/vertices.rs +++ b/src/kernel/topology/vertices.rs @@ -69,6 +69,18 @@ impl Vertex<3> { } } +impl Vertex<1> { + /// Create a transformed vertex + /// + /// The transformed vertex has its canonical form transformed by the + /// transformation provided, but is otherwise identical. + #[must_use] + pub fn transform(mut self, transform: &Transform) -> Self { + self.canonical = transform.transform_point(&self.canonical); + self + } +} + impl Vertex { /// Access the location of this vertex pub fn location(&self) -> &Point { @@ -82,14 +94,4 @@ impl Vertex { canonical: self.canonical, } } - - /// Create a transformed vertex - /// - /// The transformed vertex has its canonical form transformed by the - /// transformation provided, but is otherwise identical. - #[must_use] - pub fn transform(mut self, transform: &Transform) -> Self { - self.canonical = transform.transform_point(&self.canonical); - self - } }