rotate grains
Syntax
% rotate about the x-axis
grains = rotate(grains,rotation.byAxisAngle(xvector,180*degree))% rotate about a specific point
grains = rotate(grains,rotation.byAxisAngle(xvector,180*degree) ...
,'center',vector3d(0,0,0))Input
| grains | grain3d |
| rot | rotation |
Output
| grains | grain3d |
Options
| center | vector3d, center of rotation, default is (0,0,0) |
Flags
| keepXY | rotate only the orientation data, i.e. the Euler angles |
| keepEuler | rotate only the spatial data, i.e., the x,y, and z values |