Rosetta
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
basic.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
11 /// @brief
12 /// @author
13 
14 #ifndef INCLUDED_basic_basic_hh
15 #define INCLUDED_basic_basic_hh
16 
17 
18 // util_basic Function Declarations
19 
20 namespace basic {
21 
22 void
24  double a,
25  double b,
26  double c,
27  double & n1,
28  double & n2
29 );
30 
31 
32 double
34  double a,
35  double b
36 );
37 
38 
39 double
41  double a,
42  double b
43 );
44 
45 
46 double
48  double a,
49  double x
50 );
51 
52 /// @brief a is restricted to [0.,x), assuming that a=a+n*x,, n=any integer
53 double
55  double a,
56  double x
57 );
58 
59 
60 /// taken from wobble.cc
61 void
62 angle_in_range( double & ang );
63 
64 
65 }
66 
67 #endif
double periodic_range(double a, double x)
a is restricted to [-x/2,x/2), assuming that a=a+n*x, n=any integer
Definition: basic.cc:162
double unsigned_periodic_range(double a, double x)
a is restricted to [0.,x), assuming that a=a+n*x,, n=any integer
Definition: basic.cc:189
def x
double subtract_radian_angles(double a, double b)
subtract angles in radians, restricting the range of the result
Definition: basic.cc:134
double subtract_degree_angles(double a, double b)
subtract angles in degrees, restricting the range of the result
Definition: basic.cc:104
void calc_quadratic(double a, double b, double c, double &n1, double &n2)
calculates quadratic polynomial solutions
Definition: basic.cc:61
void angle_in_range(double &ang)
taken from wobble.cc
Definition: basic.cc:199