random directions or axes
Syntax
v = rand % a random unit vector
v = rand('antipodal') % a random axis
v = rand(m,n) % a m x n matrix of random unit vectors
cs = crystalSymmetry('432');
sR = cs.fundamentalSector;
v = rand(v,sR) % a random unit vector inside a spherical region
Input
m,n | double |
sR | sphericalRegion |
Output
v | vector3d |