Monthly Archives: July 2012

Haversine Distance Formula

I’m working on an analysis tool for GPS data in C# which needs to calculate the distance between two geographic coordinates, and I chose the Haversine formula (explanation).  So I figured I’d share my implementation: public class Point { public … Continue reading

Posted in C#, Math | Tagged , | Leave a comment

Modifying the Protocol Buffers compiler to support ScalaDoc

I’ve been building a server for a chess game in Scala, and chose protobuf as the serialization format.  When I hooked up ScalaDoc, I hit all sorts of errors, such as: Contracts.java:2125: error: not found: type BuilderParent private Builder(BuilderParent parent) … Continue reading

Posted in Java, Protocol Buffers, Scala | Leave a comment