Making Position/Direction structs more friendly for array-based signatures.

This commit is contained in:
shriwise 2018-08-11 08:30:12 -05:00 committed by pshriwise
parent 2e4809c8d5
commit baa92194ef
3 changed files with 5 additions and 13 deletions

View file

@ -57,9 +57,7 @@ struct Position {
}
// Data members
double x = 0.;
double y = 0.;
double z = 0.;
union{ double xyz[3]; struct{ double x,y,z; }; };
};
// Binary operators