public double For(Site site) { try { Coord = Maps.GetLocForAddress(site.Address); Region = Maps.GetRegion(Coord); Shielding = Maps.GetShielding(Coord); TerrainCategory = Maps.GetTerrainCategory(Coord); MzCat = TerrainCategoryToMultiplier(TerrainCategory, (double)site.Height); return(Vsit); } catch (Exception e) { return(ParamError); } }
public double For(Site site) { try { Coord = Maps.GetLocForAddress(site.Address); Region = Maps.GetRegion(Coord); Shielding = Maps.GetShielding(Coord); TerrainCategory = Maps.GetTerrainCategory(Coord); MzCat = TerrainCategoryToMultiplier(TerrainCategory, (double)site.Height); return Vsit; } catch(Exception e) { return ParamError; } }