Skip to content

Instantly share code, notes, and snippets.

@Ghost-Programmer
Created April 12, 2020 00:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ghost-Programmer/7d3b58f8bc767319fbddcc00b9f106bf to your computer and use it in GitHub Desktop.
Save Ghost-Programmer/7d3b58f8bc767319fbddcc00b9f106bf to your computer and use it in GitHub Desktop.
package name.mymiller.geo;
import name.mymiller.lang.IllegalValueException;
import java.io.Serializable;
/**
* Object for representing Latitude
*
* @author jmiller
*/
public class Latitude extends Coordinate implements Serializable {
/**
*
*/
private static final long serialVersionUID = -5927609321794514712L;
/**
* Constructor for creating the Latitude from a decimal
*
* @param decimal Decimal Degree to set this latitude to.
* @throws IllegalValueException Value out of range
*/
public Latitude(final Double decimal) throws IllegalValueException {
this.setDecimal(decimal);
}
@Override
protected int getDegreeLimit() {
return 90;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment