propka.vector_algebra
Vector calculations
Vector algebra for PROPKA.
Functions
|
Get the angle between two vectors. |
|
Get the angle between two vectors in degrees. |
|
Get rotation matrix for y-axis. |
|
Get rotation matrix for z-axis. |
|
Rotate vector around an axis. |
|
Get signed angle of two vectors around axis in radians. |
Classes
|
A 4-by-4 matrix class. |
|
- class propka.vector_algebra.Matrix4x4(a11i=0.0, a12i=0.0, a13i=0.0, a14i=0.0, a21i=0.0, a22i=0.0, a23i=0.0, a24i=0.0, a31i=0.0, a32i=0.0, a33i=0.0, a34i=0.0, a41i=0.0, a42i=0.0, a43i=0.0, a44i=0.0)[source]
A 4-by-4 matrix class.
- class propka.vector_algebra.Vector(xi: float = 0.0, yi: float = 0.0, zi: float = 0.0, atom1: _XYZ | None = None, atom2: _XYZ | None = None)[source]
- propka.vector_algebra.angle(avec: Vector, bvec: Vector) float [source]
Get the angle between two vectors.
- Parameters:
avec – vector 1
bvec – vector 2
- Returns:
angle in radians
- propka.vector_algebra.angle_degrees(avec: Vector, bvec: Vector) float [source]
Get the angle between two vectors in degrees.
- Parameters:
avec – vector 1
bvec – vector 2
- Returns:
angle in degrees
- propka.vector_algebra.rotate_atoms_around_y_axis(theta: float) Matrix4x4 [source]
Get rotation matrix for y-axis.
- Parameters:
theta – angle of rotation (radians)
- Returns:
rotation matrix
- propka.vector_algebra.rotate_atoms_around_z_axis(theta: float) Matrix4x4 [source]
Get rotation matrix for z-axis.
- Parameters:
theta – angle of rotation (radians)
- Returns:
rotation matrix