IMP  2.2.1
The Integrative Modeling Platform
Vector3D.h File Reference

Simple 3D vector class. More...

#include <IMP/base/types.h>
#include <IMP/base/base_macros.h>
#include <IMP/base/exception.h>
#include <numeric>
#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
 All IMP::kernel code is brought into the IMP namespace.
 
 IMP::algebra
 See IMP.algebra for more information.
 

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)
 Returns 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)
 Returns 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

Copyright 2007-2014 IMP Inventors. All rights reserved.

Definition in file Vector3D.h.