AnalyticalGraphicsInc/cesium — pull request #25 by mramato (2012-05-16 02:36:43+00:00)
Title: Refactor many methods to immutable properties.

Since all of the below properties always returned new instances of the same immutable objects, they now just create one instaned on startup and expose it as a property instead.

1. getUnitX() -> UNIT_X
2. getUnitY() -> UNIT_Y
3. getUnitZ() -> UNIT_Z
4. getUnitW() -> UNIT_W
5. getIdentity() -> IDENTITY
6. getWgs84() -> WGS84
7. getScaledWgs84() -> SCALED_WGS84
8. getUnitSphere() -> UNIT_SPHERE

This changed also exposed several bugs in Billboard and Label which where modifying Cartesians directly, for example setPixelOffset and setPosition. These bugs are now fixed.