IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
algebra/python_only.h
Go to the documentation of this file.
1/**
2 * \file IMP/algebra/python_only.h
3 * \brief Functionality only available in Python.
4 *
5 * Copyright 2007-2022 IMP Inventors. All rights reserved.
6 *
7 */
8
9#ifndef IMPALGEBRA_PYTHON_ONLY_H
10#define IMPALGEBRA_PYTHON_ONLY_H
11
12#include <IMP/algebra/algebra_config.h>
13
14IMPALGEBRA_BEGIN_NAMESPACE
15
16/** \name Python Only
17 The following functions are only available in Python as the
18 equivalent C++ functionality is provided via template
19 functions or in other ways that don't directly map to
20 Python.
21 @{
22*/
23#ifdef IMP_DOXYGEN
24/*Sphere2D get_unit_sphere_2d();
25Sphere3D get_unit_sphere_3d();
26Sphere4D get_unit_sphere_4d();;
27bool get_interiors_intersect(const Sphere2D&a, const Sphere2D &b);
28bool get_interiors_intersect(const Sphere3D&a, const Sphere3D &b);
29bool get_interiors_intersect(const Sphere4D&a, const Sphere4D &b);
30double get_distance(const Sphere2D&a, const Sphere2D &b);
31double get_distance(const Sphere3D&a, const Sphere3D &b);
32double get_distance(const Sphere4D&a, const Sphere4D &b);
33Vector2D get_random_vector_on(const Sphere2D &s);
34Vector2D get_random_vector_on(const BoundingBox2D &s);
35Vector3D get_random_vector_on(const Sphere3D &s);
36Vector3D get_random_vector_on(const BoundingBox3D &s);
37Vector4D get_random_vector_on(const Sphere4D &s);
38Vector4D get_random_vector_on(const BoundingBox4D &s);
39Vector2D get_random_vector_in(const Sphere2D &s);
40Vector2D get_random_vector_in(const BoundingBox2D &s);
41Vector3D get_random_vector_in(const Sphere3D &s);
42Vector3D get_random_vector_in(const BoundingBox3D &s);
43Vector4D get_random_vector_in(const Sphere4D &s);
44Vector4D get_random_vector_in(const BoundingBox4D &s);
45Vector2Ds get_uniform_surface_cover(const Sphere2D &s,
46 unsigned int n);
47Vector3Ds get_uniform_surface_cover(const Sphere3D &s,
48 unsigned int n);
49Vector<Vector4D > get_uniform_surface_cover(const Sphere4D &s,
50 unsigned int n);
51BoundingBox2D get_bounding_box(const Sphere2D &s);
52BoundingBox3D get_bounding_box(const Sphere3D &s);
53BoundingBox4D get_bounding_box(const Sphere4D &s);
54
55Vector2D get_basis_vector_2d();
56Vector3D get_basis_vector_3d();
57Vector4D get_basis_vector_4d();
58Vector2D get_zero_vector_2d();
59Vector3D get_zero_vector_3d();
60Vector4D get_zero_vector_4d();
61Vector2D get_ones_vector_2d();
62Vector3D get_ones_vector_3d();
63Vector4D get_ones_vector_4d();
64BoundingBox2D get_unit_bounding_box_2d();
65BoundingBox3D get_unit_bounding_box_3d();
66BoundingBox4D get_unit_bounding_box_4d();
67class SparseIntGrid3D;
68class SparseUnboundedIntGrid3D;
69class DenseDoubleGrid3D;
70class DenseFloatGrid3D;
71*/
72
73/** Equivalent to
74\code
75IMP::algebra::get_transformation_aligning_first_to_second(a,b);
76\endcode
77 */
79 Vector3Ds b);
80
81/** A sparse grid of integers over a bounded region of space.
82 */
83typedef Grid3D<int, SparseGridStorage3D<int, BoundedGridStorage3D>>
85/** A sparse grid of integers over all of space.
86 */
87typedef Grid3D<int, SparseGridStorage3D<int, UnboundedGridStorage3D>>
89/** A grid of doubles over a region of space.
90 */
91typedef Grid3D<double, DenseGridStorage3D<double>> DenseDoubleGrid3D;
92/** A grid of floats over a region of space.
93 */
94typedef Grid3D<float, DenseGridStorage3D<float>> DenseFloatGrid3D;
95#endif
96/** @} */
97
98IMPALGEBRA_END_NAMESPACE
99
100#endif /* IMPALGEBRA_PYTHON_ONLY_H */
Simple 3D transformation class.
IMP::algebra::Transformation3D get_transformation_aligning_first_to_second(const Vector3DsOrXYZs0 &source, const Vector3DsOrXYZs1 &target)
Compute the rigid transform bringing the first point set to the second.
Grid3D< int, SparseGridStorage3D< int, BoundedGridStorage3D > > SparseIntGrid3D
Grid3D< double, DenseGridStorage3D< double > > DenseDoubleGrid3D
Grid3D< int, SparseGridStorage3D< int, UnboundedGridStorage3D > > SparseUnboundedIntGrid3D
Grid3D< float, DenseGridStorage3D< float > > DenseFloatGrid3D
Vector< VectorD< 3 > > Vector3Ds
Definition VectorD.h:409