Maintain default values in Pos/Dir struct.

This commit is contained in:
shriwise 2018-08-11 08:40:13 -05:00 committed by pshriwise
parent b3dd1f5751
commit c975644d4e

View file

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