Make TranslateExt more flexible

This commit is contained in:
Hanno Braun 2025-02-24 19:19:00 +01:00
parent 8f48c887f3
commit 58902150ba

View File

@ -1,11 +1,11 @@
use crate::{math::Vector, object::Handle, topology::face::Face};
pub trait TranslateExt {
fn translate(self, offset: impl Into<Vector<3>>) -> Face;
fn translate(self, offset: impl Into<Vector<3>>) -> Self;
}
impl TranslateExt for Face {
fn translate(self, offset: impl Into<Vector<3>>) -> Face {
fn translate(self, offset: impl Into<Vector<3>>) -> Self {
let offset = offset.into();
Face::new(