Trait rin_graphics::node::NodeMut[][src]

pub trait NodeMut {
Show methods fn node_mut(&mut self) -> &mut Node;
fn update_with_parent_parts(
        &mut self,
        parent_loc: Option<&Node>,
        parent_orientation: Option<&Node>,
        parent_scale: Option<&Node>
    ) -> bool; fn update_with_parent(&mut self, parent: Option<&Node>) -> bool { ... }
fn look_at(&mut self, at: &Pnt3, up: &Vec3) -> Result<()> { ... }
fn rotate(&mut self, angle: Rad<f32>, axis: &Unit<Vec3>) { ... }
fn append_orientation(&mut self, rot: &UnitQuat) { ... }
fn tilt(&mut self, angle: Rad<f32>) { ... }
fn pan(&mut self, angle: Rad<f32>) { ... }
fn roll(&mut self, angle: Rad<f32>) { ... }
fn set_scale(&mut self, s: Vec3) { ... }
fn translate(&mut self, t: &Vec3) { ... }
fn set_position(&mut self, pos: Pnt3) { ... }
fn set_angle_axis(&mut self, angle: Rad<f32>, axis: &Unit<Vec3>) { ... }
fn set_orientation(&mut self, q: UnitQuat) { ... }
}

Trait to implement by objects that conatain a node and want to expose it’s same api

NodeMut only exposes the mutable api for a node

Required methods

fn node_mut(&mut self) -> &mut Node[src]

fn update_with_parent_parts(
    &mut self,
    parent_loc: Option<&Node>,
    parent_orientation: Option<&Node>,
    parent_scale: Option<&Node>
) -> bool
[src]

Updates the internal matrices including the glonal matrices using the optional parent passed as argument and flags

Loading content...

Provided methods

fn update_with_parent(&mut self, parent: Option<&Node>) -> bool[src]

Updates the internal matrices including the glonal matrices using the optional parent passed as argument

fn look_at(&mut self, at: &Pnt3, up: &Vec3) -> Result<()>[src]

Changes the orientation of the node to look at the passed position using the up vector

fn rotate(&mut self, angle: Rad<f32>, axis: &Unit<Vec3>)[src]

Rotate this note a certain angle around the axis of rotation

fn append_orientation(&mut self, rot: &UnitQuat)[src]

Append the passed quaternion to the current local orientation

fn tilt(&mut self, angle: Rad<f32>)[src]

rotate this node around it’s local x axis

fn pan(&mut self, angle: Rad<f32>)[src]

rotate this node around it’s local y axis

fn roll(&mut self, angle: Rad<f32>)[src]

rotate this node around it’s local z axis

fn set_scale(&mut self, s: Vec3)[src]

Sets the local scale

fn translate(&mut self, t: &Vec3)[src]

Append a translation to the current local position

fn set_position(&mut self, pos: Pnt3)[src]

Sets the local position of this node

fn set_angle_axis(&mut self, angle: Rad<f32>, axis: &Unit<Vec3>)[src]

Sets the orientation for this node from an angle and axis of rotation

fn set_orientation(&mut self, q: UnitQuat)[src]

Sets the orientation for this node from a quaternion

Loading content...

Implementors

impl NodeMut for Camera[src]

impl NodeMut for Node[src]

impl NodeMut for OrthoCamera[src]

impl<C: NodeMut> NodeMut for ArcballCamera<C>[src]

Loading content...