Direction of the basis.
Referenced by dir(), flip(), gen_basis(), SBasis(), serialize(), and set_dir().