We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22d599b commit e954eedCopy full SHA for e954eed
src/mesh.rs
@@ -243,6 +243,12 @@ where
243
self.transform_vertices(|p| *p += translation);
244
}
245
246
+ /// Consumes the mesh and returns it translated by the given translation vector.
247
+ pub fn translated(mut self, translation: &OVector<T, D>) -> Self {
248
+ self.translate(&translation);
249
+ self
250
+ }
251
+
252
/// Transform all vertices of the mesh by the given transformation function.
253
pub fn transform_vertices<F>(&mut self, mut transformation: F)
254
where
0 commit comments