IMP logo
IMP Reference Guide  develop.eb1b99edaa,2026/06/22
The Integrative Modeling Platform
algebra/Vector3D.h
Go to the documentation of this file.
1 /**
2  * \file IMP/algebra/Vector3D.h \brief Simple 3D vector class.
3  *
4  * Copyright 2007-2026 IMP Inventors. All rights reserved.
5  */
6 
7 #ifndef IMPALGEBRA_VECTOR_3D_H
8 #define IMPALGEBRA_VECTOR_3D_H
9 
10 #include <IMP/algebra/VectorD.h>
11 #include <IMP/Vector3D.h>
12 
13 IMPALGEBRA_BEGIN_NAMESPACE
14 
15 // Vector3D is actually implemented in the kernel (since it is used by
16 // IMP::Model) so just add aliases here
19 using IMP::get_centroid;
21 
22 IMPALGEBRA_END_NAMESPACE
23 
24 #endif /* IMPALGEBRA_VECTOR_3D_H */
Vector3D get_orthogonal_vector(const Vector3D &v)
Return a vector that is perpendicular to the given vector.
Definition: Vector3D.h:50
Vector3D get_centroid(const Vector3Ds &ps)
Return the centroid of a set of vectors.
Definition: Vector3D.h:67
double get_radius_of_gyration(const Vector3Ds &ps)
Return the radius of gyration of a set of points.
Definition: Vector3D.h:76
Simple 3D vector class.
Vector3D get_vector_product(const Vector3D &p1, const Vector3D &p2)
Return the vector product (cross product) of two vectors.
Definition: Vector3D.h:31
Simple D vector class.