IMP
2.1.0
The Integrative Modeling Platform
IMP Mainpage
All IMP Modules
Related Pages
Modules
Namespaces
Classes
Files
Examples
Indexes
File List
File Members
IMP
All IMP Modules
All IMP Modules and Applications
Argument Index
Class Examples
Factory Index
Function Examples
Design example
Developer Guide
Installation
Introduction
Mailing lists
ChangeLog
Tools
Dependencies
EMageFit protocol
EMageFit scripts and tools
Integrative docking utility programs
Deprecated List
Modules
Namespaces
Classes
Files
File List
File Members
Examples
Indexes
Class Usage
Class Examples
Class Factories
Function Examples
_randomize.py
1
# python files placed in this src directory are automatically added to the module.
2
# The function below can be accessed as IMP.example.randomize.randomize_particles().
3
4
import
IMP.core
5
6
def
randomize_particle(p):
7
d=
IMP.core.XYZ.decorate_particle
(p)
8
d.set_coordinates(
IMP.algebra.get_random_vector_in
(IMP.algebra.get_unit_bounding_box_3d()))
IMP::algebra::get_random_vector_in
Vector3D get_random_vector_in(const Cylinder3D &c)
Generate a random vector in a cylinder with uniform density.
IMP::core
See IMP.core for more information.
Definition:
AngleRestraint.h:19
IMP::core::XYZ::decorate_particle
static XYZ decorate_particle(::IMP::kernel::Particle *p)
Definition:
XYZ.h:51