![]() |
Artec 3D Scanning SDK
2.0
|
3-dimensional point class. More...
#include <artec/sdk/base/Point.h>
Public Types | |
typedef T | value_type |
Public Member Functions | |
Point3 () | |
Constructor. Empty for fast point-array allocation. More... | |
Point3 (T tx, T ty, T tz) | |
Point3 (const Point3 &ot) | |
Copying constructor. More... | |
Point3 & | operator= (const Point3 &ot) |
Assignment operator. More... | |
Point3 (const Point2< T > &ot) | |
Point2 conversion. More... | |
Point3 & | operator= (const Point2< T > &ot) |
Point3 (const Point4< T > &ot) | |
Point4 conversion. More... | |
Point3 & | operator= (const Point4< T > &ot) |
template<typename T2 > | |
Point3 (const Point3< T2 > &ot) | |
Type conversion. More... | |
Point3 | operator- () const |
Unary minus. More... | |
operator T * () | |
Conversion to plain form operator. More... | |
operator const T * () const | |
double | length () const |
Distance of the point from the origin. More... | |
double | lengthSquared () const |
Square of distance of the point from the origin. More... | |
void | normalize () |
Normalization to unit vector in the euclidean norm. More... | |
Point3 | normalized () const |
bool | isZero () const |
"Zero" checking More... | |
void | reset () |
Reset values to default. More... | |
template<typename T2 > | |
Point3< T > & | operator+= (const T2 &val) |
template<typename T2 > | |
Point3< T > & | operator-= (const T2 &val) |
template<typename T2 > | |
Point3< T > & | operator*= (const T2 &val) |
template<typename T2 > | |
Point3< T > & | operator/= (const T2 &val) |
template<typename T2 > | |
Point3< T > | operator+ (const T2 &val) const |
template<typename T2 > | |
Point3< T > | operator- (const T2 &val) const |
template<typename T2 > | |
Point3< T > | operator* (const T2 &val) const |
template<typename T2 > | |
Point3< T > | operator/ (const T2 &val) const |
Point3 & | operator+= (const Point3 &ot) |
Point3 & | operator-= (const Point3 &ot) |
Point3 & | operator*= (const Point3 &ot) |
Point3 & | operator/= (const Point3 &ot) |
Point3 | operator+ (const Point3 &p2) const |
Point3 | operator- (const Point3 &p2) const |
Point3 | operator* (const Point3 &p2) const |
Point3 | operator/ (const Point3 &p2) const |
bool | operator== (const Point3 &p2) const |
bool | operator!= (const Point3 &p2) const |
bool | operator> (const Point3 &p2) const |
bool | operator>= (const Point3 &p2) const |
bool | operator< (const Point3 &p2) const |
bool | operator<= (const Point3 &p2) const |
Static Public Member Functions | |
static T | dot (const Point3< T > &p1, const Point3< T > &p2) |
Inner product operator. More... | |
static Point3< T > | cross (const Point3< T > &p1, const Point3< T > &p2) |
Cross product of two points. More... | |
Public Attributes | |
union { | |
struct { | |
T x | |
T y | |
T z | |
} | |
T data [3] | |
}; | |
Point data. More... | |
Static Public Attributes | |
static const int | size_ = 3 |
3-dimensional point class.
Coordinates are of type T. Vertex coordinates and normal vectors.
typedef T artec::sdk::base::Point3< T >::value_type |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
union { ... } |
Point data.
T artec::sdk::base::Point3< T >::data[3] |
|
static |
T artec::sdk::base::Point3< T >::x |
T artec::sdk::base::Point3< T >::y |
T artec::sdk::base::Point3< T >::z |