Minor G12 tweaks and point_t struct extension

This commit is contained in:
João Brázio
2016-07-14 00:07:36 +01:00
parent 021544f572
commit 4937f9ada4
4 changed files with 58 additions and 27 deletions

View File

@ -28,6 +28,19 @@ struct point_t {
float y;
float z;
float e;
point_t(float const x, float const y)
: point_t(x, y, NAN, NAN) {}
point_t(float const x, float const y, float const z)
: point_t(x, y, z, NAN) {}
point_t(float const x, float const y, float const z, float const e) {
this->x = x;
this->y = y;
this->z = z;
this->e = e;
}
};
#endif