pub struct Node<'a>(/* private fields */);
Expand description
The Node
type represents a node in the imported scene hierarchy.
Implementations§
Source§impl<'a> Node<'a>
impl<'a> Node<'a>
Sourcepub fn transformation(&self) -> Matrix4x4
pub fn transformation(&self) -> Matrix4x4
Returns the node’s transformation matrix.
Sourcepub fn parent(&self) -> Option<Node<'_>>
pub fn parent(&self) -> Option<Node<'_>>
Return the parent of this node. Returns None
if this node is the root node.
Sourcepub fn num_children(&self) -> u32
pub fn num_children(&self) -> u32
Returns the number of child nodes.
Sourcepub fn child_iter(&self) -> NodeIter<'_> ⓘ
pub fn child_iter(&self) -> NodeIter<'_> ⓘ
Returns a vector containing all of the child nodes under this node.
Sourcepub fn num_meshes(&self) -> u32
pub fn num_meshes(&self) -> u32
Returns the number of meshes under this node.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Node<'a>
impl<'a> RefUnwindSafe for Node<'a>
impl<'a> !Send for Node<'a>
impl<'a> !Sync for Node<'a>
impl<'a> Unpin for Node<'a>
impl<'a> UnwindSafe for Node<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more