Skip to content

quickorient

quickorient(ubi, bt)

Categories: Indexing, Crystallography

Description

takes two g-vectors in UBI[0] and UBI[1] and overwrites with UBI orientation using cache in bt (from h1,h2) ... computes cross product 0x1 = ubi[0]xubi[1] ... normalises u0=ubi0 and u2=0x1 and computes u1=u0xu2 ... returns in UBI BT.(u1,u2,u3) algorithm was due to Busing and Levy

Parameters

Name Description
bt Busing-Levy cache (9-element).
ubi Orientation matrix (9-element). First 2 rows are g-vectors on entry; overwritten with UBI on exit.

Constraints

  • ubi.format == 'd'
  • ubi.ndim == 2
  • ubi.shape[0] == 3
  • ubi.shape[1] == 3
  • bt.format == 'd'
  • bt.ndim == 2
  • bt.shape[0] == 3
  • bt.shape[1] == 3

Overloads

C function Condition
quickorient always

Built from commit 7ba8255fa8d680e1a1df79e67aee3873247ce69c (v0.4.5)