Compute the offset vector connecting a site with label "B", to its i-th neighbor, returning a (scalar) xy coordinate. It takes any i ∈ ℤ, but there will only be 3 inequivalent output vectors, pointing to the three nearest neighbors.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(unit_cell), | intent(in) | :: | layout | |||
integer, | intent(in) | :: | i |