Struct mallumo::NodeBuilder
[−]
[src]
pub struct NodeBuilder { pub id: usize, pub mesh: Option<usize>, pub translation: Vector3<f32>, pub rotation: Quaternion<f32>, pub scale: Vector3<f32>, }
Fields
id: usize
mesh: Option<usize>
translation: Vector3<f32>
rotation: Quaternion<f32>
scale: Vector3<f32>
Methods
impl NodeBuilder
[src]
fn new(id: usize) -> NodeBuilder
[src]
fn mesh(&mut self, mesh: usize) -> &mut NodeBuilder
[src]
fn translation<T>(&mut self, translation: T) -> &mut NodeBuilder where
T: Into<Vector3<f32>>,
[src]
T: Into<Vector3<f32>>,
fn rotation<T>(&mut self, rotation: T) -> &mut NodeBuilder where
T: Into<Quaternion<f32>>,
[src]
T: Into<Quaternion<f32>>,
fn scale<T>(&mut self, scale: T) -> &mut NodeBuilder where
T: Into<Vector3<f32>>,
[src]
T: Into<Vector3<f32>>,
fn matrix<T>(&mut self, matrix: T) -> &mut NodeBuilder where
T: Into<Matrix4<f32>>,
[src]
T: Into<Matrix4<f32>>,
fn build(&self) -> Node
[src]
Trait Implementations
impl Debug for NodeBuilder
[src]
impl Clone for NodeBuilder
[src]
fn clone(&self) -> NodeBuilder
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more