Back to project page elf.map.android.
The source code is released under:
This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a co...
If you think the Android project elf.map.android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * License: Public Domain// w w w . j a v a2s . com * Author: elf * EMail: elf198012@gmail.com */ package elf.map; public class Location{ public Location(){} public Location(float longitude, float latitude){ Set(longitude, latitude); } public Location(Location location){ Set(location.Longitude(), location.Latitude()); } public float Longitude(){ return _longitude; } public float Latitude(){ return _latitude; } public void SetLongitude(float longitude){ this._longitude = longitude; } public void SetLatitude(float latitude){ this._latitude = latitude; } public void Set(float longitude, float latitude){ SetLongitude(longitude); SetLatitude(latitude); } public void Set(Location location){ Set(location.Longitude(), location.Latitude()); } private float _longitude; private float _latitude; }