Minor G12 tweaks and point_t struct extension
This commit is contained in:
parent
021544f572
commit
4937f9ada4
4 changed files with 58 additions and 27 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue