Some cleanup
This commit is contained in:
parent
8aae479df3
commit
bcc035ab91
|
@ -92,6 +92,13 @@ impl Transform {
|
|||
trans.y += y;
|
||||
trans.z += z;
|
||||
}
|
||||
|
||||
/// Combines a transform with another one.
|
||||
///
|
||||
/// The translations are added while the rotations and scales are multiplied.
|
||||
pub fn combine(self, rhs: Transform) -> Transform {
|
||||
self + rhs
|
||||
}
|
||||
|
||||
/// Performs a linear interpolation between `self` and `rhs` based on the value `alpha`.
|
||||
///
|
||||
|
|
|
@ -172,7 +172,7 @@ impl<'a> SceneGraph<'a> {
|
|||
self.traverse_down_from(self.root_node.clone(), &mut callback);
|
||||
}
|
||||
|
||||
/// Traverses down the SceneGraph from a starting node, calling `callback` with each
|
||||
/// Recursively Traverses down the SceneGraph from a starting node, calling `callback` with each
|
||||
/// SceneNode and its world transform.
|
||||
fn traverse_down_from<F>(&self, start: SceneNode, callback: &mut F)
|
||||
where
|
||||
|
|
Loading…
Reference in New Issue