IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
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
13IMPALGEBRA_BEGIN_NAMESPACE
14
15// Vector3D is actually implemented in the kernel (since it is used by
16// IMP::Model) so just add aliases here
21
22IMPALGEBRA_END_NAMESPACE
23
24#endif /* IMPALGEBRA_VECTOR_3D_H */
Simple 3D vector class.
Simple D vector class.
Vector3D get_orthogonal_vector(const Vector3D &v)
Return a vector that is perpendicular to the given vector.
Definition Vector3D.h:50
double get_radius_of_gyration(const Vector3Ds &ps)
Return the radius of gyration of a set of points.
Definition Vector3D.h:76
Vector3D get_vector_product(const Vector3D &p1, const Vector3D &p2)
Return the vector product (cross product) of two vectors.
Definition Vector3D.h:31
Vector3D get_centroid(const Vector3Ds &ps)
Return the centroid of a set of vectors.
Definition Vector3D.h:67