round2Miller

(method of orientation)

find h1,h2,d1,d2 such that ori * h1 = h2 and ori*d1=d2

Syntax

[h1,h2,d1,d2] = round2Miller(mori)
[h1,h2,d1,d2] = round2Miller(mori,'penalty',0.01)
[h1,h2,d1,d2] = round2Miller(mori,'maxIndex',6)

Input

mori

misorientation

Output

h1,h2,d1,d2

Miller

See also