LengthCreation extension

Provides convenient factory methods for creating Length instances from num using shortened unit names where appropriate.

on

Properties

angstrom Length

Available on num, provided by the LengthCreation extension

Creates a Length instance representing this numerical value in Ångströms (Å).
no setter
AU Length

Available on num, provided by the LengthCreation extension

Creates a Length instance representing this numerical value in Astronomical Units (AU).
no setter
cm Length

Available on num, provided by the LengthCreation extension

Creates a Length instance representing this numerical value in Centimeters (cm).
no setter
dam Length

Available on num, provided by the LengthCreation extension

Creates a Length instance representing this numerical value in Decameters (dam).
no setter
dm Length

Available on num, provided by the LengthCreation extension

Creates a Length instance representing this numerical value in Decimeters (dm).
no setter
fm Length

Available on num, provided by the LengthCreation extension

Creates a Length instance representing this numerical value in Femtometers (fm).
no setter
ft Length

Available on num, provided by the LengthCreation extension

Creates a Length instance representing this numerical value in Feet (ft).
no setter
gigaM Length

Available on num, provided by the LengthCreation extension

Creates a Length instance representing this numerical value in Gigameters (Gm).
no setter
hm Length

Available on num, provided by the LengthCreation extension

Creates a Length instance representing this numerical value in Hectometers (hm).
no setter
inch Length

Available on num, provided by the LengthCreation extension

Creates a Length instance representing this numerical value in Inches (in).
no setter
km Length

Available on num, provided by the LengthCreation extension

Creates a Length instance representing this numerical value in Kilometers (km).
no setter
ly Length

Available on num, provided by the LengthCreation extension

Creates a Length instance representing this numerical value in Light Years (ly).
no setter
m Length

Available on num, provided by the LengthCreation extension

Creates a Length instance representing this numerical value in Meters (m).
no setter
megaM Length

Available on num, provided by the LengthCreation extension

Creates a Length instance representing this numerical value in Megameters (Mm).
no setter
mi Length

Available on num, provided by the LengthCreation extension

Creates a Length instance representing this numerical value in Miles (mi).
no setter
mm Length

Available on num, provided by the LengthCreation extension

Creates a Length instance representing this numerical value in Millimeters (mm).
no setter
nm Length

Available on num, provided by the LengthCreation extension

Creates a Length instance representing this numerical value in Nanometers (nm).
no setter
nmi Length

Available on num, provided by the LengthCreation extension

Creates a Length instance representing this numerical value in Nautical Miles (nmi).
no setter
pc Length

Available on num, provided by the LengthCreation extension

Creates a Length instance representing this numerical value in Parsecs (pc).
no setter
pm Length

Available on num, provided by the LengthCreation extension

Creates a Length instance representing this numerical value in Picometers (pm).
no setter
um Length

Available on num, provided by the LengthCreation extension

Creates a Length instance representing this numerical value in Micrometers (μm).
no setter
yd Length

Available on num, provided by the LengthCreation extension

Creates a Length instance representing this numerical value in Yards (yd).
no setter