struct Chem::Improper

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.cr

Constructors

Instance Method Summary

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

def self.new(a1 : Atom, a2 : Atom, a3 : Atom, a4 : Atom) #

Creates a new Improper with the given atoms.


[View source]

Instance Method Detail

def measure : Float64 #

Returns the current value of the improper dihedral angle in radians.


[View source]