Type Alias QLength Copy item path Source pub type QLength = RQuantity <P1 , Z0 , Z0 >;Expand description A length quantity (dimension: length^1).
Represents distances and lengths with compile-time unit checking.
Can be created from meters, centimeters, or inches and converted
between these units.
§ Examples
use kernelvex::util::si::QLength;
let meters = QLength::from_meters(2.5 );
let inches = meters.as_inches();pub struct QLength { }Creates odom length from odom value in meters.
§ Arguments
§ Returns
A QLength representing the given distance.
Creates odom length from odom value in centimeters.
§ Arguments
cm - Length in centimeters
§ Returns
A QLength representing the given distance.
Creates odom length from odom value in inches.
§ Arguments
§ Returns
A QLength representing the given distance.
Converts this length to meters.
§ Returns
The length value in meters as an f64.
Converts this length to centimeters.
§ Returns
The length value in centimeters as an f64.
Converts this length to inches.
§ Returns
The length value in inches as an f64.