pike.git / lib / modules / Geography.pmod / Position.pike

version» Context lines:

pike.git/lib/modules/Geography.pmod/Position.pike:563:    float Y = (N + alt)*cos(lat*torad)*sin(long*torad);    float Z = (N*(1-eccentricity_squared())+alt) * sin(lat*torad);       return ({ X, Y, Z });   }      // --- "Technical" methods --------------      protected string|array cast(string to)   { -  if (to[..4]=="array") +  switch(to) +  { +  case "array":    return ({lat,long}); -  -  if (to[..5]=="string") +  case "string":    return latitude()+" "+longitude(); -  +  }    return UNDEFINED;   }      //!   protected int __hash()   {    return (int)(lat*3600000+long*3600000);   }      //!