fractaldna.dna_models.dnapositions.overlap_volume¶
- fractaldna.dna_models.dnapositions.overlap_volume(pos1, pos2, r1, r2)¶
Calculate overlapping volume of two spheres
overlap_volume(pos1, pos2, r1, r2)
- Parameters:
pos1 (
List
) – Position of first molecule (x, y, z)pos2 (
List
) – Position of second molecule (x, y, z)r1 (
float
) – Radius of first moleculer2 (
float
) – Radius of second molecule
- Return type:
float
- Returns:
Volume of overlap.