ball< C, R, V > Class Template Reference
#include <ball.hpp>
List of all members.
Public Types
Public Member Functions
- typedef Round_up (R) Up
- ball ()
- template<typename T > ball (const T &c2)
- template<typename CT , typename RT , typename VT > ball (const ball< CT, RT, VT > &z)
- ball (const C &x)
- ball (const C &c2, const R &r2)
- ball (const C &c2, const R &r2, bool adjust)
- ball (const Real_type(ball< C, R, V >)&x, const Real_type(ball< C, R, V >)&y)
- ball< C, R, V > & operator<<= (const xint &shift)
- ball< C, R, V > & operator>>= (const xint &shift)
Friends
Detailed Description
template<typename C, typename R = Default_radius_type(C), typename V = typename ball_variant_helper< C >::BV>
class mmx::ball< C, R, V >
Definition at line 32 of file ball.hpp.
Member Typedef Documentation
Constructor & Destructor Documentation
ball |
( |
const T & |
c2 |
) |
[inline] |
Definition at line 43 of file ball.hpp.
00043 :
00044 c (as<C> (c2)), r (0) {
00045 Rnd::add_additive_error (*this); }
template<typename CT, typename RT, typename VT>
ball |
( |
const ball< CT, RT, VT > & |
z |
) |
[inline] |
Definition at line 47 of file ball.hpp.
References R, and XVERIFY.
00047 :
00048 c (as<C> (center (z))), r (as<R> (radius (z))) {
00049 XVERIFY (r >= 0, "negative radius", r);
00050
00051 Rnd::add_additive_error (*this); }
inline ball (const C& x):
ball |
( |
const C & |
x |
) |
[inline] |
Definition at line 52 of file ball.hpp.
00052 :
00053 c (x), r (0) {}
inline ball (const C& c2, const R& r2):
ball |
( |
const C & |
c2, |
|
|
const R & |
r2 | |
|
) |
| | [inline] |
Definition at line 54 of file ball.hpp.
References XVERIFY.
00054 :
00055 c (c2), r (r2) {
00056 XVERIFY (r >= 0, "negative radius", r); }
inline ball (const C& c2, const R& r2, bool adjust):
ball |
( |
const C & |
c2, |
|
|
const R & |
r2, |
|
|
bool |
adjust | |
|
) |
| | [inline] |
ball |
( |
const Real_type(ball< C, R, V >)& |
x, |
|
|
const Real_type(ball< C, R, V >)& |
y | |
|
) |
| | [inline] |
Member Function Documentation
ball< C, R, V > & operator<<= |
( |
const xint & |
shift |
) |
[inline] |
Definition at line 676 of file ball.hpp.
00676 {
00677 typedef implementation<ball_shift,V> Impl;
00678 Impl::shiftl (*this, shift); return *this; }
ball< C, R, V > & operator>>= |
( |
const xint & |
shift |
) |
[inline] |
Definition at line 679 of file ball.hpp.
00679 {
00680 typedef implementation<ball_shift,V> Impl;
00681 Impl::shiftr (*this, shift); return *this; }
Friends And Related Function Documentation
The documentation for this class was generated from the following file: