40 #include <drain/UniTuple.h>
41 #include <drain/Type.h>
53 Point2D(T x=0, T y=0) : x(this->next()), y(this->next()){
65 x(this->next()), y(this->next()){
99 Point3D(T x=0, T y=0, T z=0) : x(this->
at(0)=x), y(this->
at(1)=y), z(this->
at(2)=z){
106 this->set(p.tuple());
113 this->set(p.tuple());
118 void setLocation(
const T2 & x,
const T2 & y,
const T2 & z){
119 this->x =
static_cast<T
>(x);
120 this->y =
static_cast<T
>(y);
121 this->z =
static_cast<T
>(z);
const S & at(size_t i) const
Return const reference to element i.
Definition: TupleBase.h:97
Tuple of N elements of type T.
Definition: UniTuple.h:65
Definition: DataSelector.cpp:1277