### 4 releases

0.0.4 | Oct 15, 2020 |
---|---|

0.0.3 | Oct 15, 2020 |

0.0.2 | Oct 15, 2020 |

0.0.1 | Oct 15, 2020 |

#**1616** in Math

**26** downloads per month

Used in **5** crates
(3 directly)

**MIT**license

8KB

72 lines

# dihedral

This crate provides functions for working with dihedral angles. Currently, there are two functions:

calculates the dihedral angle in the range -π to π in accordance with biochemistry textbooks (see also: https://en.wikipedia.org/wiki/Dihedral_angle#In_stereochemistry)`dihedral`

ignores the direction of rotation and outputs the angle within the range 0 to π. This function is faster than the above signed version.`dihedral_unsigned`

###
`lib.rs`

:

# Dihedral

This crate provides functions for working with dihedral angles. Currently, there are two functions:

calculates the dihedral angle in the range -π to π in accordance with biochemistry textbooks (see also: https://en.wikipedia.org/wiki/Dihedral_angle#In_stereochemistry)`dihedral`

ignores the direction of rotation and outputs the angle within the range 0 to π. This function is faster than the above signed version.`dihedral_unsigned`

If you want to use

instead of `f32`

for calculation, you can add `f64`

to your `dihedral = {version = "*", features = ["f32"]}`

`Cargo.toml`

.