Skip to content

Instantly share code, notes, and snippets.

@cemre
cemre / greatcirclearc.java
Created October 22, 2011 22:36
Rendering great circle arcs in Processing between two coordinates
void drawPath(float lat1, float lon1, float lat2, float lon2) {
stroke(0);
strokeWeight(5);
noFill();
lat1 *= PI/180;
lon1 *= PI/180;
lat2 *= PI/180;
lon2 *= PI/180;