Parameters
- distance
- Distance in the units of this instance.
Return Value
Distance converted to meters.
// convert 10 feet to meters double metres = LinearUnit.Feet.ConvertToMeters(10); // convert 20 meters to feet double feet = LinearUnit.Feet.ConvertFromMeters(20.0);
// convert 11 centimeters to millimeters double mm = LinearUnit.Centimeters.ConvertTo(11, LinearUnit.Millimeters); // convert the result back to centimeters double cm = LinearUnit.Millimeters.ConvertTo(mm, LinearUnit.Centimeters); // convert the millimeter result back to meters double meters = LinearUnit.Millimeters.ConvertToMeters(mm);
Target Platforms: Windows 10, Windows 8.1