IMP logo

vector_generators.h File Reference

Functions to generate vectors. More...

Include dependency graph for vector_generators.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Namespaces

namespace  IMP
 The IMP kernel provides base classes and key shared functionality.
namespace  IMP::algebra
 This module contains general purpose algebraic and geometric methods.

Functions

Vector Generators
These functions generate vector objects. Some of the methods, those with random in their name, generate a single vector chosen uniformly from the specified domain. Others, the cover methods, generate a set of points distributed (somewhat) evenly over the domain.

std::vector< VectorD< 3 > > IMP::algebra::get_grid_surface_cover (const Cylinder3D &cyl, int number_of_cycles, int number_of_points_on_cycle)
 Generate a grid of 3d points on a cylinder surface.
std::vector< VectorD< 3 > > IMP::algebra::get_random_chain (unsigned int n, double r, const VectorD< 3 > &start=Vector3D(0, 0, 0), const std::vector< SphereD< 3 > > &obstacles=Sphere3Ds())
 Generate a random chain with no collisions.
template<unsigned int D>
VectorD< D > IMP::algebra::get_random_vector_in (const SphereD< D > &s)
 Generate a random vector in a sphere with uniform density.
template<unsigned int D>
VectorD< D > IMP::algebra::get_random_vector_in (const BoundingBoxD< D > &bb)
 Generate a random vector in a box with uniform density.
template<unsigned int D>
VectorD< D > IMP::algebra::get_random_vector_on (const SphereD< D > &s)
 Generate a random vector on a sphere with uniform density.
template<unsigned int D>
VectorD< D > IMP::algebra::get_random_vector_on (const BoundingBoxD< D > &bb)
 Generate a random vector on a box with uniform density.
std::vector< VectorD< 3 > > IMP::algebra::get_uniform_surface_cover (const Cone3D &cone, unsigned int number_of_points)
std::vector< VectorD< 3 > > IMP::algebra::get_uniform_surface_cover (const SpherePatch3D &sph, unsigned int number_of_points)
 Generate a set of 3d points that uniformly cover a patch of a sphere.
std::vector< VectorD< 3 > > IMP::algebra::get_uniform_surface_cover (const Cylinder3D &cyl, int number_of_points)
 Generate a set of 3d points that uniformly cover a cylinder.
template<unsigned int D>
std::vector< VectorD< D > > IMP::algebra::get_uniform_surface_cover (const SphereD< D > &s, unsigned int n)
 Generate a set of vectors which covers a sphere uniformly.
template<unsigned int D>
std::vector< VectorD< D > > IMP::algebra::get_uniform_upper_hemisphere_cover (const SphereD< D > &s, unsigned int n)
 Generate a set of 3D points that uniformly cover a hemisphere.

Detailed Description

Functions to generate vectors.

Copyright 2007-2010 IMP Inventors. All rights reserved.


Generated on Mon Mar 8 23:08:19 2010 for IMP by doxygen 1.5.8