MCPcopy Create free account
hub / github.com/GrapheneOS/Camera / Speed

Class Speed

app/src/main/java/androidxc/camera/core/impl/utils/Exif.java:702–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

700 private static final class Speed {
701 static Converter fromKilometersPerHour(double kph) {
702 return new Converter(kph * 0.621371);
703 }
704 static Converter fromMilesPerHour(double mph) {
705 return new Converter(mph);
706 }
707
708 static Converter fromKnots(double knots) {
709 return new Converter(knots * 1.15078);
710 }
711
712 static final class Converter {
713 final double mMph;
714
715 Converter(double mph) {
716 mMph = mph;
717 }
718
719 double toMetersPerSecond() {
720 return mMph / 2.23694;
721 }
722 }
723 }
724
725 /**
726 * Creates a list that contains all public tags defined in {@link ExifInterface}.
727 *
728 * <p> Deprecated tags are not included.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected