Artec 3D Scanning SDK
2.0
|
4-dimensional point class. More...
#include <artec/sdk/base/Point.h>
Public Types | |
typedef T | value_type |
Public Member Functions | |
Point4 () | |
Constructor. Empty for allocation of the fast points array. More... | |
Point4 (T tx, T ty, T tz, T tw) | |
Point4 (const Point4 &ot) | |
Copying constructor. More... | |
Point4 & | operator= (const Point4 &ot) |
Assignment operator. More... | |
Point4 (const Point2< T > &ot) | |
Point2 conversion. More... | |
Point4 & | operator= (const Point2< T > &ot) |
Point4 (const Point3< T > &ot) | |
Point3 conversion. More... | |
Point4 & | operator= (const Point3< T > &ot) |
template<typename T2 > | |
Point4 (const Point4< T2 > &ot) | |
Type conversion. More... | |
Point4 | 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... | |
Point4 | normalized () const |
bool | isZero () const |
"Zero" checking More... | |
void | reset () |
Reset values to default. More... | |
template<typename T2 > | |
Point4< T > & | operator+= (const T2 &val) |
template<typename T2 > | |
Point4< T > & | operator-= (const T2 &val) |
template<typename T2 > | |
Point4< T > & | operator*= (const T2 &val) |
template<typename T2 > | |
Point4< T > & | operator/= (const T2 &val) |
template<typename T2 > | |
Point4< T > | operator+ (const T2 &val) const |
template<typename T2 > | |
Point4< T > | operator- (const T2 &val) const |
template<typename T2 > | |
Point4< T > | operator* (const T2 &val) const |
template<typename T2 > | |
Point4< T > | operator/ (const T2 &val) const |
Point4 & | operator+= (const Point4 &ot) |
Point4 & | operator-= (const Point4 &ot) |
Point4 & | operator*= (const Point4 &ot) |
Point4 & | operator/= (const Point4 &ot) |
Point4 | operator+ (const Point4 &p2) const |
Point4 | operator- (const Point4 &p2) const |
Point4 | operator* (const Point4 &p2) const |
Point4 | operator/ (const Point4 &p2) const |
bool | operator== (const Point4 &p2) const |
bool | operator!= (const Point4 &p2) const |
bool | operator> (const Point4 &p2) const |
bool | operator>= (const Point4 &p2) const |
bool | operator< (const Point4 &p2) const |
bool | operator<= (const Point4 &p2) const |
Static Public Member Functions | |
static T | dot (const Point4< T > &p1, const Point4< T > &p2) |
Inner product operator. More... | |
Public Attributes | |
union { | |
struct { | |
T x | |
T y | |
T z | |
T w | |
} | |
T data [4] | |
}; | |
Point data. More... | |
Static Public Attributes | |
static const int | size_ = 4 |
4-dimensional point class.
Coordinates are of type T.
typedef T artec::sdk::base::Point4< T >::value_type |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
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::Point4< T >::data[4] |
|
static |
T artec::sdk::base::Point4< T >::w |
T artec::sdk::base::Point4< T >::x |
T artec::sdk::base::Point4< T >::y |
T artec::sdk::base::Point4< T >::z |