Branch: Tag:

2004-06-28

2004-06-28 07:17:01 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

allow encoding of Geography.Position

Rev: lib/modules/Geography.pmod/Position.pike:1.17

587:   //!   int `==(object pos)   { -  return (pos->lat==lat && pos->long==long); +  return (objectp(pos) && pos->lat==lat && pos->long==long);   }      //!
621:    `-,ECEF(),p->ECEF()),    lambda(float f) { return f*f; })));   } +  + // encoder + array(float) _encode() { return ({lat,long,alt}); } + void _decode(array(float) v) { create(@v); }