Rosetta
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
calc_distance.hh
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file numeric/kdtree/kdtree.hh
11 /// @brief utility functions for kd-tree. See kdtree.hh for more information.
12 /// @author James Thompson
13 #ifndef INCLUDED_numeric_kdtree_calc_distance_hh
14 #define INCLUDED_numeric_kdtree_calc_distance_hh
15 
16 #include <numeric/types.hh>
17 #include <utility/vector1.hh>
18 
19 namespace numeric {
20 namespace kdtree {
21 
22 /// distance metrics for real-valued points
23 
24 /// @brief Returns the square of the Euclidean distance between the two points
25 /// vec1 and vec2.
29 );
30 
31 /// @brief Returns the Euclidean distance between the two points vec1 and vec2.
35 );
36 
37 } // kdtree
38 } // numeric
39 
40 #endif
numeric::Real vec_distance(utility::vector1< numeric::Real > const &vec1, utility::vector1< numeric::Real > const &vec2)
Returns the Euclidean distance between the two points vec1 and vec2.
numeric::Real sq_vec_distance(utility::vector1< numeric::Real > const &vec1, utility::vector1< numeric::Real > const &vec2)
distance metrics for real-valued points
std::vector with 1-based indexing
Definition: vector1.fwd.hh:44
rosetta project type declarations. Should be kept updated with core/types.hh. This exists because num...
vector1: std::vector with 1-based indexing