struct

Chem::Angle

Inherits Chem::Connectivity / Comparable / Struct / Value / Object

An Angle provides a canonical representation of an angle between three bonded atoms.

An angle is defined by two contiguous bonds:

A       C
  \   /
    B

It measures the angle between the two vectors defined by the atoms (A,B) and (B,C).

Constructors

new(a1 : Atom, a2 : Atom, a3 : Atom)

Creates a new Angle with the given atoms.

Source

Instance methods

measure

Returns the current value of the angle in radians.

Source