
#include <PointCloud/Point.H>
Collaboration diagram for Point< T, DIMS >:

This is a completely public class whose goal is just to provide a shorthand notation for 2D integer coordinates. All methods are inlined, so there is no .C file, just a .H file.
Definition at line 52 of file Point.H.
Public Member Functions | |
| Point () | |
| The default constructor initializes the coordinates to (0,0). | |
| Point (const T *dims) | |
| Initialize the Point from horizontal & vertical coordinates. | |
| template<class U> | |
| Point (const Point< U, DIMS > &a) | |
| explicit conversion from type T to another type U | |
| Point< T, DIMS > & | operator+= (const Point< T, DIMS > &p) |
| += operator | |
| Point< T, DIMS > & | operator-= (const Point< T, DIMS > &p) |
| -= operator | |
| Point< T, DIMS > & | operator *= (const Point< T, DIMS > &p) |
| *= operator | |
| Point< T, DIMS > & | operator/= (const Point< T, DIMS > &p) |
| /= operator | |
| template<class U> | |
| Point< typename promote_trait< T, U >::TP, DIMS > | operator+ (const Point< U, DIMS > &p) const |
| + operator | |
| template<class U> | |
| Point< typename promote_trait< T, U >::TP, DIMS > | operator- (const Point< U, DIMS > &p) const |
| |
| template<class U> | |
| Point< typename promote_trait< T, U >::TP, DIMS > | operator * (const Point< U, DIMS > &p) const |
| * operator | |
| template<class U> | |
| Point< typename promote_trait< T, U >::TP, DIMS > | operator/ (const Point< U, DIMS > &p) const |
| / operator | |
| Point< T, DIMS > & | operator+= (const T val) |
| += operator | |
| Point< T, DIMS > & | operator-= (const T val) |
| -= operator | |
| Point< T, DIMS > & | operator *= (const T val) |
| *= operator | |
| Point< T, DIMS > & | operator/= (const T val) |
| /= operator | |
| template<class U> | |
| Point< typename promote_trait< T, U >::TP, DIMS > | operator+ (const U val) const |
| + operator | |
| template<class U> | |
| Point< typename promote_trait< T, U >::TP, DIMS > | operator- (const U val) const |
| |
| template<class U> | |
| Point< typename promote_trait< T, U >::TP, DIMS > | operator * (const U val) const |
| * operator | |
| template<class U> | |
| Point< typename promote_trait< T, U >::TP, DIMS > | operator/ (const U val) const |
| / operator | |
| bool | isValid () const |
| test whether i and j are both positive | |
| promote_trait< T, float >::TP | squdist (const Point< T, DIMS > &p) const |
| the square of the euclidean distance | |
| promote_trait< T, float >::TP | distance (const Point< T, DIMS > &p) const |
| the euclidean distance from p | |
| void | clampToDims (const T *dims) |
| clamp the coords such that the point fits into image of dimensions dims | |
Public Attributes | |
| T | P [DIMS] |
| N-D coordinates. | |
|
|||||||||
|
The default constructor initializes the coordinates to (0,0).
Definition at line 148 of file Point.H. References i, and Point< T, DIMS >::P. |
|
||||||||||
|
Initialize the Point from horizontal & vertical coordinates.
Definition at line 153 of file Point.H. References i, and Point< T, DIMS >::P. |
|
||||||||||||||
|
explicit conversion from type T to another type U
Definition at line 159 of file Point.H. References i. |
|
||||||||||
|
clamp the coords such that the point fits into image of dimensions dims
Definition at line 343 of file Point.H. References i, and Point< T, DIMS >::P. |
|
||||||||||
|
the euclidean distance from p
Definition at line 338 of file Point.H. References sqrt(), and Point< T, DIMS >::squdist(). |
|
|||||||||
|
test whether i and j are both positive
Definition at line 313 of file Point.H. References i, and Point< T, DIMS >::P. |
|
||||||||||||||
|
* operator
Definition at line 272 of file Point.H. References i, and Point< T, DIMS >::P. |
|
||||||||||||||
|
* operator
Definition at line 208 of file Point.H. References i, and Point< T, DIMS >::P. |
|
||||||||||
|
*= operator
Definition at line 238 of file Point.H. References i, and Point< T, DIMS >::P. |
|
||||||||||
|
*= operator
Definition at line 174 of file Point.H. References i, and Point< T, DIMS >::P. |
|
||||||||||||||
|
+ operator
Definition at line 250 of file Point.H. References i, and Point< T, DIMS >::P. |
|
||||||||||||||
|
+ operator
Definition at line 186 of file Point.H. References i, and Point< T, DIMS >::P. |
|
||||||||||
|
+= operator
Definition at line 228 of file Point.H. References i, and Point< T, DIMS >::P. |
|
||||||||||
|
+= operator
Definition at line 164 of file Point.H. References i, and Point< T, DIMS >::P. |
|
||||||||||||||
|
Definition at line 261 of file Point.H. References i, and Point< T, DIMS >::P. |
|
||||||||||||||
|
Definition at line 197 of file Point.H. References i, and Point< T, DIMS >::P. |
|
||||||||||
|
-= operator
Definition at line 233 of file Point.H. References i, and Point< T, DIMS >::P. |
|
||||||||||
|
-= operator
Definition at line 169 of file Point.H. References i, and Point< T, DIMS >::P. |
|
||||||||||||||
|
/ operator
Definition at line 283 of file Point.H. References i, and Point< T, DIMS >::P. |
|
||||||||||||||
|
/ operator
Definition at line 219 of file Point.H. References i, and Point< T, DIMS >::P. |
|
||||||||||
|
/= operator
Definition at line 243 of file Point.H. References i, and Point< T, DIMS >::P. |
|
||||||||||
|
/= operator
Definition at line 179 of file Point.H. References i, and Point< T, DIMS >::P. |
|
||||||||||
|
the square of the euclidean distance
Definition at line 326 of file Point.H. References i, and Point< T, DIMS >::P. Referenced by Point< T, DIMS >::distance(). |
|
|||||
1.4.4