ViennaGrid - The Vienna Grid Library
2.1.0
|
Contains functions for calculating angles between vectors given by points. More...
#include "viennagrid/algorithm/inner_prod.hpp"
#include "viennagrid/algorithm/cross_prod.hpp"
#include "viennagrid/algorithm/norm.hpp"
Go to the source code of this file.
Namespaces | |
namespace | viennagrid |
The main ViennaGrid namespace. Most user functionality resides directly in this namespace rather than in sub-namespaces. | |
Functions | |
template<typename PointT > | |
viennagrid::result_of::coord < PointT >::type | angle (PointT const &v0, PointT const &v1) |
Implementation of the spanned angle between two vectors (i.e. the angle between the rays connecting v0 and v1 with the origin) | |
template<typename PointT > | |
viennagrid::result_of::coord < PointT >::type | angle (PointT const &p0, PointT const &p1, PointT const &origin) |
Implementation of the angle between two lines directing from origin to p0 and p1. | |
template<typename PointT > | |
viennagrid::result_of::coord < PointT >::type | dihedral_angle (PointT const &p0, PointT const &p1, PointT const &p2, PointT const &q0, PointT const &q1, PointT const &q2) |
Implementation of the dihedral angle between two planes, each defined by 3 points. | |
template<typename PointT > | |
viennagrid::result_of::coord < PointT >::type | solid_angle (PointT const &a, PointT const &b, PointT const &c) |
Implementation of the spanned (solid) angle by three points with respect to the origin (the solid angle defined by the tetrahedron (a, b, c, origin) | |
template<typename PointT > | |
viennagrid::result_of::coord < PointT >::type | solid_angle (PointT const &p0, PointT const &p1, PointT const &p2, PointT const &origin) |
Implementation of the solid angle from an origin to p0, p1 and p2. |
Contains functions for calculating angles between vectors given by points.