Module

MolDraw.Bond

Package
purescript-mol-draw
Repository
lukasturcani/molDraw

Defines the Bond type.

#Bond Source

data Bond

Represents a bond.

#AtomId Source

type AtomId = Int

#BondOrder Source

type BondOrder = Int

#atom1Id Source

atom1Id :: Bond -> AtomId

Get the id of the first atom.

#atom2Id Source

atom2Id :: Bond -> AtomId

Get the id of the second atom.

#order Source

order :: Bond -> BondOrder

Get the bond order.

#bond Source

bond :: BondOrder -> AtomId -> AtomId -> Bond

Create a bond.