Much better run down of orient and great resource: http://www.tokeru.com/cgwiki/index.ph...
That code:
matrix3 m = ident ( );
rotate ( m, radians ( ch('rx') ), { 1, 0, 0 } );
rotate ( m, radians ( fit01(rand(@ptnum),0,ch('ry')) ), { 0, 1, 0 } );
rotate ( m, radians ( ch('rz') ), { 0, 0, 1 } );
@N *= m;
Website: https://axisfx.design
Business Email: [email protected]