Skip to main content

transform_node

Function transform_node 

Source
pub fn transform_node(
    node: &mut [f64; 3],
    transformation_matrix: &[[f64; 4]; 4],
    origin: &[f64; 3],
)
Expand description

Transforms a node using a 4x4 transformation matrix.

ยงArguments

  • node: A mutable 3D node.
  • transformation_matrix: A 4x4 array representing the transformation matrix.
  • origin: A reference to an [f64; 3] specifying the origin of rotation.