
8 Oct
2008
8 Oct
'08
9:58 p.m.
Patrick Mihelich wrote:
I can't offhand think of a use case where the dimensions are of heterogeneous type
In GPS data, I store altitude to the nearest metre in an int16_t, and altitude and longitude in degrees in 32-bit fixed-point types. Although longitude needs one more bit than latitude I tend to use the same type for both, so my 2d algorithms are homogeneous. But anything that also involves altitude needs to be heterogeneous. Phil.