struct Chem::Improper
- Chem::Improper
- Struct
- Value
- Object
Overview
An Improper
provides a canonical representation of an improper
dihedral angle between four bonded atoms.
An improper dihedral angle is defined by three bonds around a central atom:
A C
\ /
B
|
D
It measures the angle between the two planes defined by the atoms (A,B,C) and (C,B,D).
Included Modules
Defined in:
chem/connectivity.crConstructors
-
.new(a1 : Atom, a2 : Atom, a3 : Atom, a4 : Atom)
Creates a new Improper with the given atoms.
Instance Method Summary
-
#measure : Float64
Returns the current value of the improper dihedral angle in radians.
Instance methods inherited from module Chem::Connectivity({Chem::Atom, Chem::Atom, Chem::Atom, Chem::Atom})
<=>(rhs : self) : Int32
<=>,
atoms : {Chem::Atom, Chem::Atom, Chem::Atom, Chem::Atom}
atoms,
includes?(atom : Atom) : Bool
includes?,
inspect(io : IO) : Nil
inspect,
measure : Float64
measure,
to_s(io : IO) : Nil
to_s
Constructor Detail
Creates a new Improper with the given atoms.