calCo: Calculate Cartesian coordinates for 1-4 bonded atoms

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Given coordinates for the first three atoms forming a dihedral, the dihedral angle, bond angle, and bond length, calculate the coordinates of the fourth atom forming the dihedral.

Usage

1
calCo(prev_atoms, length, bAngle, tAngle)

Arguments

prev_atoms

a 3x3 matrix of coordinates for atoms 1-2-3 in dihedral, listed by row

length

bond length between atoms 3-4 in dihedral

bAngle

planar bond angle between atoms 2-3-4

tAngle

dihedral angle formed by atoms 1-2-3-4

Value

Returns the vector of coordinates for the fourth atom in the dihedral


wongswk/compass documentation built on Jan. 9, 2022, 8:31 p.m.