Public Types |
Public Member Functions |
Static Public Member Functions |
Public Attributes |
Static Public Attributes |
List of all members
artec::sdk::base::Point2< T > Class Template Reference
#include <artec/sdk/base/Point.h>
Public Types | |
typedef T | value_type |
Public Member Functions | |
Point2 () | |
Constructor. Empty for fast points array allocation. More... | |
Point2 (T tx, T ty) | |
Point2 (const Point2 &ot) | |
Copying constructor. More... | |
Point2 & | operator= (const Point2 &ot) |
Assignment operator. More... | |
Point2 (const Point3< T > &ot) | |
Point3 conversion. More... | |
Point2 & | operator= (const Point3< T > &ot) |
Point2 (const Point4< T > &ot) | |
Point4 conversion. More... | |
Point2 & | operator= (const Point4< T > &ot) |
template<typename T2 > | |
Point2 (const Point2< T2 > &ot) | |
Type conversion. More... | |
Point2 | operator- () const |
Unary minus. More... | |
operator T * () | |
Conversion to plain form operator. More... | |
operator const T * () const | |
double | length () const |
Length of point. More... | |
double | lengthSquared () const |
Square of length of point. More... | |
void | normalize () |
normalizing to unit vector in euclidean norm More... | |
Point2 | normalized () const |
bool | isZero () const |
Zero checking. More... | |
void | reset () |
Reset values to default. More... | |
template<typename T2 > | |
Point2< T > & | operator+= (const T2 &val) |
template<typename T2 > | |
Point2< T > & | operator-= (const T2 &val) |
template<typename T2 > | |
Point2< T > & | operator*= (const T2 &val) |
template<typename T2 > | |
Point2< T > & | operator/= (const T2 &val) |
template<typename T2 > | |
Point2< T > | operator+ (const T2 &val) const |
template<typename T2 > | |
Point2< T > | operator- (const T2 &val) const |
template<typename T2 > | |
Point2< T > | operator* (const T2 &val) const |
template<typename T2 > | |
Point2< T > | operator/ (const T2 &val) const |
Point2 & | operator+= (const Point2 &ot) |
Point2 & | operator-= (const Point2 &ot) |
Point2 & | operator*= (const Point2 &ot) |
Point2 & | operator/= (const Point2 &ot) |
Point2 | operator+ (const Point2 &p2) const |
Point2 | operator- (const Point2 &p2) const |
Point2 | operator* (const Point2 &p2) const |
Point2 | operator/ (const Point2 &p2) const |
bool | operator== (const Point2 &p2) const |
bool | operator!= (const Point2 &p2) const |
bool | operator> (const Point2 &p2) const |
bool | operator>= (const Point2 &p2) const |
bool | operator< (const Point2 &p2) const |
bool | operator<= (const Point2 &p2) const |
Static Public Member Functions | |
static T | dot (const Point2< T > &p1, const Point2< T > &p2) |
Inner product operator. More... | |
Public Attributes | |
union { | |
struct { | |
T x | |
T y | |
} | |
T data [2] | |
}; | |
point data More... | |
Static Public Attributes | |
static const int | size_ = 2 |
Detailed Description
template<typename T>
class artec::sdk::base::Point2< T >
2-dimensional point class. Coordinates are of type T.
Member Typedef Documentation
template<typename T>
typedef T artec::sdk::base::Point2< T >::value_type |
Constructor & Destructor Documentation
template<typename T>
|
inlineexplicit |
template<typename T>
|
inlineexplicit |
template<typename T>
|
inline |
template<typename T>
|
inline |
template<typename T>
|
inline |
template<typename T>
template<typename T2 >
|
inlineexplicit |
Member Function Documentation
template<typename T>
|
inlinestatic |
template<typename T>
|
inline |
template<typename T>
|
inline |
template<typename T>
|
inline |
template<typename T>
|
inline |
template<typename T>
|
inline |
template<typename T>
|
inline |
template<typename T>
|
inline |
template<typename T>
|
inline |
template<typename T>
template<typename T2 >
|
inline |
template<typename T>
|
inline |
template<typename T>
template<typename T2 >
|
inline |
template<typename T>
|
inline |
template<typename T>
template<typename T2 >
|
inline |
template<typename T>
|
inline |
template<typename T>
template<typename T2 >
|
inline |
template<typename T>
|
inline |
template<typename T>
template<typename T2 >
|
inline |
template<typename T>
|
inline |
template<typename T>
|
inline |
template<typename T>
template<typename T2 >
|
inline |
template<typename T>
|
inline |
template<typename T>
template<typename T2 >
|
inline |
template<typename T>
|
inline |
template<typename T>
template<typename T2 >
|
inline |
template<typename T>
|
inline |
template<typename T>
|
inline |
template<typename T>
|
inline |
template<typename T>
|
inline |
template<typename T>
|
inline |
template<typename T>
|
inline |
template<typename T>
|
inline |
template<typename T>
|
inline |
template<typename T>
|
inline |
template<typename T>
|
inline |
Member Data Documentation
union { ... } |
point data
template<typename T>
T artec::sdk::base::Point2< T >::data[2] |
template<typename T>
|
static |
template<typename T>
T artec::sdk::base::Point2< T >::x |
template<typename T>
T artec::sdk::base::Point2< T >::y |
The documentation for this class was generated from the following file:
- artec/sdk/base/Point.h