惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

量子位
F
Fortinet All Blogs
小众软件
小众软件
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Microsoft Azure Blog
Microsoft Azure Blog
J
Java Code Geeks
有赞技术团队
有赞技术团队
D
DataBreaches.Net
Hugging Face - Blog
Hugging Face - Blog
V
Visual Studio Blog
A
About on SuperTechFans
I
InfoQ
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
雷峰网
雷峰网
H
Hackread – Cybersecurity News, Data Breaches, AI and More
罗磊的独立博客
C
Check Point Blog
大猫的无限游戏
大猫的无限游戏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
酷 壳 – CoolShell
酷 壳 – CoolShell
MyScale Blog
MyScale Blog

博客园 - 半克拉鹅卵石

strong name in gac sql积累 一些有用的bat命令 js获取某年某月天数 正则表达式分割数组 修改系统时间 转贴:Lucene的评分(score)机制 搜索引擎CACHE策略研究 DllImport lucene.net 2.0在多线程同步下似乎有问题 Lucene Hack之通过缩小搜索结果集来提升性能 lucene2.0与2.3区别 asp.net常用函数 不走寻常路,设计asp.net应用程序的七大绝招 数据库备份 获取sql server服务器名称 如何用SQLDMO在ASP.NET页面下实现数据库的备份与恢复 C#中下载Excel文件(其实就是将Excel文件从一个路径Copy到另一个路径) Asp.net中操作Excel的权限解决方法
计算经纬度距离
半克拉鹅卵石 · 2008-10-15 · via 博客园 - 半克拉鹅卵石
public static double GetCoorDistance2(double x1, double y1, double x2, double y2)
{
    double num2 = 1.852;
    double num3 = 0.017453292519943295 * x1;
    double num4 = 0.017453292519943295 * x2;
    double a = 0.017453292519943295 * y1;
    double num6 = 0.017453292519943295 * y2;
    double d = (Math.Sin(a) * Math.Sin(num6)) + ((Math.Cos(a) * Math.Cos(num6)) * Math.Cos(num3 - num4));
    return ((((Math.Acos(d) * 57.295779513082323) * 60.0) * num2) * 1000.0);
}