IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
Vector3D.h File Reference

Simple 3D vector class. More...

#include <IMP/types.h>
#include <IMP/base_macros.h>
#include <IMP/exception.h>
#include <numeric>
#include <cmath>
#include "VectorD.h"
Include dependency graph for Vector3D.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  IMP
 Base functionality and abstract base classes for representation, scoring and sampling.

3D Vectors

We provide a specialization of VectorD for 3-space and several additional functions on it.

Vector3D IMP::get_centroid (const Vector3Ds &ps)
 Return the centroid of a set of vectors.
Vector3D IMP::get_orthogonal_vector (const Vector3D &v)
 Return a vector that is perpendicular to the given vector.
double IMP::get_radius_of_gyration (const Vector3Ds &ps)
 Return the radius of gyration of a set of points.
Vector3D IMP::get_vector_product (const Vector3D &p1, const Vector3D &p2)
 Return the vector product (cross product) of two vectors.

Detailed Description

Simple 3D vector class.

Copyright 2007-2026 IMP Inventors. All rights reserved.

Definition in file Vector3D.h.