Archive for the ‘Java Dev’ Category

This article describes the file naming conventions for the Slippy Map application.

  • Tiles are 256 × 256 pixel PNG files
  • Each zoom level is a directory, each column is a subdirectory, and each tile in that column is a file
  • Filename(url) format is /zoom/x/y.png

The slippy map expects tiles to be served up at URLs following this scheme, so all tile server URLs look pretty similar.

Contents

[hide]

(more…)

Advertisements

Java Math Quick Reference

Posted: February 2, 2012 in Java Dev
  • contains static constants E and PI
E:    2.718281828459045
PI:   3.141592653589793
  • contains methods for common mathematical operations ie abs, sin, exp, round, etc.
  • all methods are static
  • the Math class cannot be instantiated
  • methods involving angles use radians vs degrees and minutes
  • all methods, except round(), return a double
  • all methods take at least one double as an argument, except random which takes no arguments
  • the following methods are overloaded to return and handle int, long and float
    • static type abs(type a)
    • static type max(type a, type b)
    • static type min(type a, type b)

(more…)