[−][src]Macro nsi::double_matrix
A macro to create a double precision 4×4 matrix argument.
Example
// create rendering context. let ctx = nsi::Context::new(&[]).unwrap(); // Setup a transform node. ctx.create("xform", nsi::NodeType::Transform, &[]); ctx.connect("xform", "", ".root", "objects", &[]); // Translate 5 units along z-axis. ctx.set_attribute( "xform", &[nsi::double_matrix!( "transformationmatrix", &[1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 5., 1.,] )], );