fj_core/operations/transform/
vertex.rs

1use fj_math::Transform;
2
3use crate::{objects::Vertex, Core};
4
5use super::{TransformCache, TransformObject};
6
7impl TransformObject for Vertex {
8    fn transform_with_cache(
9        &self,
10        _: &Transform,
11        _: &mut Core,
12        _: &mut TransformCache,
13    ) -> Self {
14        // There's nothing to actually transform here, as `Vertex` holds no
15        // data. We still need this implementation though, as a new `Vertex`
16        // object must be created to represent the new and transformed vertex.
17        Self::new()
18    }
19}