Skip to content

Commit

Permalink
Add method to set height in foot
Browse files Browse the repository at this point in the history
  • Loading branch information
shred committed Jan 17, 2024
1 parent 20f781a commit 1f6bf23
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,19 @@ public interface LocationParameter<T> {
*/
T height(double h);

/**
* Sets the height, in foot.
*
* @param ft
* Height, in foot above sea level. Default: 0.0 ft. Negative values are
* silently changed to the acceptable minimum of 0.0 ft.
* @return itself
* @since 3.8
*/
default T heightFt(double ft) {
return height(ft * 0.3048);
}

/**
* Sets the geolocation.
*
Expand Down

0 comments on commit 1f6bf23

Please sign in to comment.