IMP logo
IMP Reference Guide  2.20.2
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

 IMP
 Base functionality and abstract base classes for representation, scoring and sampling.
 
 IMP::algebra
 General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP modules.
 

3D Vectors

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

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

Detailed Description

Simple 3D vector class.

Copyright 2007-2022 IMP Inventors. All rights reserved.

Definition in file Vector3D.h.