ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::PointProjectionTools::IndexedCCVector2 Class Reference

Indexed 2D vector. More...

#include <PointProjectionTools.h>

Inheritance diagram for cloudViewer::PointProjectionTools::IndexedCCVector2:
Collaboration diagram for cloudViewer::PointProjectionTools::IndexedCCVector2:

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
 
PointCoordinateTypedata ()
 
const PointCoordinateTypedata () 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...
 
Vector2Tploperator- ()
 Inverse operator. More...
 
Vector2Tpl operator- (const Vector2Tpl &v) const
 Subtraction operator. More...
 
Vector2Tploperator+= (const Vector2Tpl &v)
 In-place addition operator. More...
 
Vector2Tploperator-= (const Vector2Tpl &v)
 In-place subtraction operator. More...
 
Vector2Tploperator*= (PointCoordinateType v)
 In-place multiplication (by a scalar) operator. More...
 
Vector2Tploperator/= (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...
 
PointCoordinateTypeoperator[] (unsigned i)
 Direct coordinate access. More...
 
const PointCoordinateTypeoperator[] (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]
 
}; 
 

Detailed Description

Indexed 2D vector.

Used for convex and concave hull computation

Definition at line 161 of file PointProjectionTools.h.

Constructor & Destructor Documentation

◆ IndexedCCVector2() [1/4]

cloudViewer::PointProjectionTools::IndexedCCVector2::IndexedCCVector2 ( )
inline

Default constructor.

Definition at line 164 of file PointProjectionTools.h.

◆ IndexedCCVector2() [2/4]

cloudViewer::PointProjectionTools::IndexedCCVector2::IndexedCCVector2 ( PointCoordinateType  x,
PointCoordinateType  y 
)
inline

Constructor.

Definition at line 166 of file PointProjectionTools.h.

◆ IndexedCCVector2() [3/4]

cloudViewer::PointProjectionTools::IndexedCCVector2::IndexedCCVector2 ( PointCoordinateType  x,
PointCoordinateType  y,
unsigned  i 
)
inline

Constructor.

Definition at line 169 of file PointProjectionTools.h.

◆ IndexedCCVector2() [4/4]

cloudViewer::PointProjectionTools::IndexedCCVector2::IndexedCCVector2 ( const CCVector2 v)
inline

Copy constructor.

Definition at line 174 of file PointProjectionTools.h.

Member Data Documentation

◆ index

unsigned cloudViewer::PointProjectionTools::IndexedCCVector2::index

The documentation for this class was generated from the following file: