[−][src]Macro nsi::double_matrix
Create a DoubleMatrix
double precision 4×4 matrix argument.
Example
// 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.,] )], );