![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Indexed 2D vector. More...
#include <PointProjectionTools.h>


Public Member Functions | |
| IndexedCCVector2 () | |
| Default constructor. More... | |
| IndexedCCVector2 (PointCoordinateType x, PointCoordinateType y) | |
| Constructor. More... | |
| IndexedCCVector2 (PointCoordinateType x, PointCoordinateType y, unsigned i) | |
| Constructor. More... | |
| IndexedCCVector2 (const CCVector2 &v) | |
| Copy constructor. More... | |
Public Member Functions inherited from Vector2Tpl< PointCoordinateType > | |
| std::size_t | rows () const |
| std::size_t | dimensions () const |
| PointCoordinateType * | data () |
| const PointCoordinateType * | data () const |
| Vector2Tpl (PointCoordinateType s=0) | |
| Default constructor. More... | |
| Vector2Tpl (PointCoordinateType _x, PointCoordinateType _y) | |
| Constructor from a couple of coordinates. More... | |
| PointCoordinateType | norm2 () const |
| Returns vector square norm. More... | |
| PointCoordinateType | norm () const |
| Returns vector norm. More... | |
| void | normalize () |
| Sets vector norm to unity. More... | |
| PointCoordinateType | dot (const Vector2Tpl &v) const |
| Dot product. More... | |
| PointCoordinateType | cross (const Vector2Tpl &v) const |
| Cross product. More... | |
| Vector2Tpl & | operator- () |
| Inverse operator. More... | |
| Vector2Tpl | operator- (const Vector2Tpl &v) const |
| Subtraction operator. More... | |
| Vector2Tpl & | operator+= (const Vector2Tpl &v) |
| In-place addition operator. More... | |
| Vector2Tpl & | operator-= (const Vector2Tpl &v) |
| In-place subtraction operator. More... | |
| Vector2Tpl & | operator*= (PointCoordinateType v) |
| In-place multiplication (by a scalar) operator. More... | |
| Vector2Tpl & | operator/= (PointCoordinateType v) |
| In-place division (by a scalar) operator. More... | |
| Vector2Tpl | operator+ (const Vector2Tpl &v) const |
| Addition operator. More... | |
| Vector2Tpl | operator* (PointCoordinateType s) const |
| Multiplication operator. More... | |
| Vector2Tpl | operator/ (PointCoordinateType s) const |
| Division operator. More... | |
| PointCoordinateType & | operator[] (unsigned i) |
| Direct coordinate access. More... | |
| const PointCoordinateType & | operator[] (unsigned i) const |
| Direct coordinate access (const) More... | |
Public Attributes | |
| unsigned | index |
| Point index. More... | |
Public Attributes inherited from Vector2Tpl< PointCoordinateType > | |
| PointCoordinateType | x |
| PointCoordinateType | y |
| PointCoordinateType | u [2] |
| union { | |
| struct { | |
| Type x | |
| Type y | |
| } | |
| Type u [2] | |
| }; | |
Indexed 2D vector.
Used for convex and concave hull computation
Definition at line 161 of file PointProjectionTools.h.
|
inline |
Default constructor.
Definition at line 164 of file PointProjectionTools.h.
|
inline |
Constructor.
Definition at line 166 of file PointProjectionTools.h.
|
inline |
Constructor.
Definition at line 169 of file PointProjectionTools.h.
|
inline |
Copy constructor.
Definition at line 174 of file PointProjectionTools.h.
| unsigned cloudViewer::PointProjectionTools::IndexedCCVector2::index |
Point index.
Definition at line 177 of file PointProjectionTools.h.
Referenced by contourPoly(), contourPoly2(), ccContourExtractor::ExtractConcaveHull2D(), cloudViewer::PointProjectionTools::extractConcaveHull2D(), and FindNearestCandidate().