#include <dpoint.hpp>
Public Types | |
| typedef NumType | NT |
| typedef InternalNumberType< NumType >::__INT | __INT |
Public Member Functions | |
| void | move2origin () |
| dpoint () | |
| dpoint (NumType x0) | |
| 1 D Point | |
| dpoint (NumType x0, NumType x1) | |
| 2 D Point | |
| dpoint (NumType x0, NumType x1, NumType x2) | |
| 3 D Point | |
| dpoint (NumType ax[]) | |
| Array Initialization. | |
| dpoint (const dpoint< NumType, D > &p) | |
| Initialization from another point : Copy Constructor. | |
| template<class OtherNumType> | |
| dpoint (const dpoint< OtherNumType, D > &p) | |
| Automatic type conversions of points. | |
| ~dpoint () | |
| int | dim () const |
| double | sqr_dist (const dpoint< NumType, D > q) const |
| double | distance (const dpoint< NumType, D > q) const |
| __INT | dotprod (const dpoint< NumType, D > q) const |
| __INT | sqr_length (void) const |
| void | normalize (void) |
| NumType & | operator[] (int i) |
| NumType | operator[] (int i) const |
| dpoint & | operator= (const dpoint< NumType, D > &q) |
Friends | |
| template<typename NT, unsigned __DIM> | |
| dpoint< NT, __DIM > | operator- (const dpoint< NT, __DIM > &p, const dpoint< NT, __DIM > &q) |
| template<typename NT, unsigned __DIM> | |
| dpoint< NT, __DIM > | operator+ (const dpoint< NT, __DIM > &p, const dpoint< NT, __DIM > &q) |
| template<typename NT, unsigned __DIM> | |
| bool | operator== (const dpoint< NT, __DIM > &p, const dpoint< NT, __DIM > &q) |
| template<typename NT, unsigned __DIM> | |
| bool | operator!= (const dpoint< NT, __DIM > &p, const dpoint< NT, __DIM > &q) |
| template<typename __NT, unsigned __DIM> | |
| void | iswap (dpoint< __NT, __DIM > &p, dpoint< __NT, __DIM > &q) |
Definition at line 319 of file dpoint.hpp.
|
|||||
|
Definition at line 328 of file dpoint.hpp. |
|
|||||
|
Definition at line 327 of file dpoint.hpp. |
|
|||||||||
|
Definition at line 336 of file dpoint.hpp. References Assert. |
|
||||||||||
|
1 D Point
Definition at line 342 of file dpoint.hpp. |
|
||||||||||||||||
|
2 D Point
Definition at line 344 of file dpoint.hpp. |
|
||||||||||||||||||||
|
3 D Point
Definition at line 346 of file dpoint.hpp. |
|
||||||||||
|
Array Initialization.
Definition at line 348 of file dpoint.hpp. |
|
||||||||||
|
Initialization from another point : Copy Constructor.
Definition at line 350 of file dpoint.hpp. |
|
||||||||||||||
|
Automatic type conversions of points. Only allowed if the conversion is specified explicitly by the programmer. Definition at line 356 of file dpoint.hpp. |
|
|||||||||
|
Definition at line 359 of file dpoint.hpp. |
|
|||||||||
|
Definition at line 361 of file dpoint.hpp. |
|
||||||||||
|
Definition at line 495 of file dpoint.hpp. |
|
||||||||||
|
Definition at line 502 of file dpoint.hpp. |
|
|||||||||
|
Definition at line 334 of file dpoint.hpp. |
|
||||||||||
|
Definition at line 393 of file dpoint.hpp. References reviver::dpoint< NumType, D >::sqr_length(). |
|
||||||||||
|
Definition at line 468 of file dpoint.hpp. References Assert. |
|
||||||||||
|
Definition at line 477 of file dpoint.hpp. |
|
||||||||||
|
Definition at line 482 of file dpoint.hpp. |
|
||||||||||
|
Definition at line 489 of file dpoint.hpp. |
|
||||||||||
|
Definition at line 508 of file dpoint.hpp. Referenced by reviver::dpoint< NumType, D >::normalize(). |
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||
|
Definition at line 445 of file dpoint.hpp. |
|
||||||||||||||||||||
|
Definition at line 421 of file dpoint.hpp. |
|
||||||||||||||||||||
|
Definition at line 429 of file dpoint.hpp. |
|
||||||||||||||||||||
|
Definition at line 439 of file dpoint.hpp. |
1.4.6