Rosetta
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Ball.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 core/scoring/packing/PoseBalls.hh
11 /// @brief
12 /// @author
13 
14 #ifndef INCLUDED_core_scoring_packing_Ball_hh
15 #define INCLUDED_core_scoring_packing_Ball_hh
16 
17 // Project headers
18 #include <core/types.hh>
19 
20 #include <utility/pointer/ReferenceCount.hh>
21 
22 #include <numeric/xyzVector.hh>
23 
24 namespace core {
25 namespace scoring {
26 namespace packing {
27 
28 
29 class Ball : public utility::pointer::ReferenceCount {
30 
31 public:
32 
34  Ball( numeric::xyzVector<core::Real> const & xyz, core::Real r ) : xyz_(xyz), r_(r) {}
35 
36  inline core::Real const & x() const { return xyz_.x(); }
37  inline core::Real const & y() const { return xyz_.y(); }
38  inline core::Real const & z() const { return xyz_.z(); }
39  inline core::Real const & r() const { return r_; }
40  inline core::Real const & radius() const { return r_; }
41  inline numeric::xyzVector<core::Real> const & xyz() const { return xyz_; }
42 
43  inline core::Real & x() { return xyz_.x(); }
44  inline core::Real & y() { return xyz_.y(); }
45  inline core::Real & z() { return xyz_.z(); }
46  inline core::Real & r() { return r_; }
47  inline core::Real & radius() { return r_; }
48  inline numeric::xyzVector<core::Real> & xyz() { return xyz_; }
49 
50 private:
51 
52  numeric::xyzVector<core::Real> xyz_;
54 
55 };
56 
57 } // namespace packing
58 } // namespace scoring
59 } // namespace core
60 
61 
62 #endif // INCLUDED_core_scoring_packing_Balls_HH
core::Real & x()
Definition: Ball.hh:43
core::Real & r()
Definition: Ball.hh:46
core::Real & y()
Definition: Ball.hh:44
numeric::xyzVector< core::Real > const & xyz() const
Definition: Ball.hh:41
core::Real & radius()
Definition: Ball.hh:47
core::Real const & y() const
Definition: Ball.hh:37
rosetta project type declarations
numeric::xyzVector< core::Real > xyz_
Definition: Ball.hh:52
core::Real const & x() const
Definition: Ball.hh:36
core::Real const & radius() const
Definition: Ball.hh:40
Ball(core::Real x, core::Real y, core::Real z, core::Real r)
Definition: Ball.hh:33
platform::Real Real
Definition: types.hh:35
numeric::xyzVector< core::Real > & xyz()
Definition: Ball.hh:48
core::Real const & z() const
Definition: Ball.hh:38
Ball(numeric::xyzVector< core::Real > const &xyz, core::Real r)
Definition: Ball.hh:34
core::Real const & r() const
Definition: Ball.hh:39
core::Real & z()
Definition: Ball.hh:45