Skip to content

Commit 54d0d43

Browse files
committed
foot unit
1 parent fabc67e commit 54d0d43

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/main/java/mil/nga/crs/common/Units.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ public class Units {
3939
*/
4040
public static final String US_SURVEY_FOOT = "US survey foot";
4141

42+
/**
43+
* Foot unit name
44+
*/
45+
public static final String FOOT = "foot";
46+
4247
/**
4348
* Microradian unit name
4449
*/
@@ -198,6 +203,15 @@ public static Unit getUSSurveyFoot() {
198203
return new Unit(UnitType.LENGTHUNIT, US_SURVEY_FOOT, 0.304800609601219);
199204
}
200205

206+
/**
207+
* Get a foot unit
208+
*
209+
* @return foot unit
210+
*/
211+
public static Unit getFoot() {
212+
return new Unit(UnitType.LENGTHUNIT, FOOT, 0.3048);
213+
}
214+
201215
/**
202216
* Get a microradian unit
203217
*

0 commit comments

Comments
 (0)