struct Chem::Spatial::Basis

Defined in:

chem/spatial/basis.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(i : Vector, j : Vector, k : Vector) #

[View source]
def self.new(size : Size, alpha : Number = 90.0, beta : Number = 90.0, gamma : Number = 90.0) : self #

[View source]

Instance Method Detail

def ==(rhs : self) : Bool #

[View source]
def a : Float64 #

[View source]
def alpha : Float64 #

[View source]
def angles : Tuple(Float64, Float64, Float64) #

[View source]
def b : Float64 #

[View source]
def beta : Float64 #

[View source]
def c : Float64 #

[View source]
def gamma : Float64 #

[View source]
def i : Vector #

[View source]
def j : Vector #

[View source]
def k : Vector #

[View source]
def size : Size #

[View source]
def transform : AffineTransform #

Returns the transformation that converts Cartesian coordinates to fractional coordinates in terms of the basis vectors.

This is equivalent to the basis change from standard to the basis defined by the lattice vectors, which is calculated as the inverse of the latter


[View source]