Skip to content

Instantly share code, notes, and snippets.

@sld
Created December 24, 2011 12:26
Show Gist options
  • Save sld/1517246 to your computer and use it in GitHub Desktop.
Save sld/1517246 to your computer and use it in GitHub Desktop.
Point projection service
get_2d_projection: () ->
data = ""
$.ajax
async: false
dataType: 'json'
url: "http://0.0.0.0:3000/point_projection/calculate_point_screen_projection?x=#{@x}&y=#{@y}&z=#{@z}&a=#{@a}&b=#{@b}&c=#{@c}&central_project=#{@central_project}"
success: (my_data) ->
data = my_data
return data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment