1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use fj_math::Transform;

use crate::{objects::Curve, services::Services};

use super::{TransformCache, TransformObject};

impl TransformObject for Curve {
    fn transform_with_cache(
        self,
        _: &Transform,
        _: &mut Services,
        _: &mut TransformCache,
    ) -> Self {
        // There's nothing to actually transform here, as `Curve` holds no data.
        // We still need this implementation though, as a new `Curve` object
        // must be created to represent the new and transformed curve.
        Self::new()
    }
}