mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-08 20:08:30 +00:00
Make TranslateExt
more flexible
This commit is contained in:
parent
8f48c887f3
commit
58902150ba
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user