Module

MolDraw.Atom

Package
purescript-mol-draw
Repository
lukasturcani/molDraw

Defines the Atom type.

You will probably wonder why there is both an Atom and a GeometryAtom type. Atom represents atoms individually, while GeometryAtom represents an atom in the context of a molecule. Essentially, the difference is simply that GeometryAtom has an id, while an Atom does not.

#Atom Source

data Atom

Represents atoms.

Instances

#position Source

position :: Atom -> Position

Get the position of an atom.

#chemicalSymbol Source

chemicalSymbol :: Atom -> ChemicalSymbol

Get the chemical symbol of an atom.

#atom Source

atom :: ChemicalSymbol -> Position -> Atom

Create an atom.