Geometry Tools

This section of geometry tools especially contains methods to convert directions and rotations from one parametrization into another. Additionally, some basic geometrical objects are predefined.

Complete Function list

CSLcoincidence site lattice misorientations for cubic symmetry
Miller2quatcalculate quaternion from Miller indece
axis2quatrotational axis, roational angle to Quaternion
axis2quat_outerrotational axis, roational angle to Quaternion
brassOrientationreturns the cube orientation
cubeOrientationreturns the cube orientation
equispacedS2Griddefines an equispaced spherical grid
equispacedSO3Griddefines a equispaced grid in the orientation space
euler2quatconverts euler angle to quaternion
expquatmatrix exponential to convert skew symmetric matrices into quaternions
fibre2quatarbitrary quaternion q with q * h = r
fit_ellipsefinds the best fit to an ellipse for the given set of points.
gossOrientationreturns the cube orientation
guessfibretry to find the fibre of to given rotations by finding the eigenvector
hr2quatarbitrary quaternion q with q * h = r
idRotationthe identical rotation
idquaternionthe identical rotation quaternion(1,0,0,0)
inversionthe inversion reflection at the origin
loadCIFimport crystal symmetry from cif file
localOrientationGriddefine a equispaced grid localized to a center orientation
mat2quatconverts direction cosine matrix to quaternion
nanquaternionthe identical rotation quaternion(1,0,0,0)
plotS2Gridcreate a regular S2Grid for plotting
plotSO3Gridgive a regular grid in orientation space
randqreturns random quaternions
reflectiondefines a reflection at plane with normal n
regularS2GridSyntax
regularSO3Gridregular grid in Euler orientation space
vec42quatreturns a quaternion q with q u_1 = v1 and q u2 = v2
xvectorvector (1,0,0)
yvectorvector (0,1,0)
zvectorvector (0,0,1)