Package boofcv.generate
Enum Class Unit
- All Implemented Interfaces:
Serializable
,Comparable<Unit>
,java.lang.constant.Constable
Set of standard units of measure, conversions between them, and their abbreviations
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA.k.a.0.001 inch a.k.a. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
conversion
(Unit from, Unit to) double
conversionTo
(Unit to) double
static Unit
Sees if the specified work matches any of the units full name or short name.static Unit
Returns the enum constant of this class with the specified name.static Unit[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Unit[]
Returns value of all units which are not "UNKNOWN"
-
Enum Constant Details
-
UNKNOWN
-
MICROMETER
A.k.a. Micron -
MILLIMETER
-
CENTIMETER
-
METER
-
KILOMETER
-
MIL
0.001 inch a.k.a. thou -
INCH
-
FOOT
-
YARD
-
MILE
-
-
Field Details
-
unitToMeter
public final double unitToMeter -
abbreviation
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
valuesKnown
Returns value of all units which are not "UNKNOWN" -
lookup
Sees if the specified work matches any of the units full name or short name. -
convert
-
conversionTo
-
conversion
-