1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
// <auto-generated>
// This code was generated by the UnitCodeGenerator tool
//
// Changes to this file will be lost if the code is regenerated
// </auto-generated>
//! # Speed based converters
/// Feet Per Second conversion functions
pub mod feet_per_second {
/// Converts the supplied Feet Per Second value to Miles Per Hour
/// # Arguments
/// * `value` - The Feet Per Second input value
pub fn to_miles_per_hour(value: f64) -> f64 {
return value / 1.46667;
}
/// Converts the supplied Feet Per Second value to Kilometres Per Hour
/// # Arguments
/// * `value` - The Feet Per Second input value
pub fn to_kilometres_per_hour(value: f64) -> f64 {
return value * 1.09728;
}
/// Converts the supplied Feet Per Second value to Metres Per Second
/// # Arguments
/// * `value` - The Feet Per Second input value
pub fn to_metres_per_second(value: f64) -> f64 {
return value / 3.28084;
}
/// Converts the supplied Feet Per Second value to Knots
/// # Arguments
/// * `value` - The Feet Per Second input value
pub fn to_knots(value: f64) -> f64 {
return value / 1.68781;
}
}
/// Kilometres Per Hour conversion functions
pub mod kilometres_per_hour {
/// Converts the supplied Kilometres Per Hour value to Miles Per Hour
/// # Arguments
/// * `value` - The Kilometres Per Hour input value
pub fn to_miles_per_hour(value: f64) -> f64 {
return value / 1.60934;
}
/// Converts the supplied Kilometres Per Hour value to Feet Per Second
/// # Arguments
/// * `value` - The Kilometres Per Hour input value
pub fn to_feet_per_second(value: f64) -> f64 {
return value / 1.09728;
}
/// Converts the supplied Kilometres Per Hour value to Metres Per Second
/// # Arguments
/// * `value` - The Kilometres Per Hour input value
pub fn to_metres_per_second(value: f64) -> f64 {
return value / 3.6;
}
/// Converts the supplied Kilometres Per Hour value to Knots
/// # Arguments
/// * `value` - The Kilometres Per Hour input value
pub fn to_knots(value: f64) -> f64 {
return value / 1.852;
}
}
/// Knots conversion functions
pub mod knots {
/// Converts the supplied Knots value to Miles Per Hour
/// # Arguments
/// * `value` - The Knots input value
pub fn to_miles_per_hour(value: f64) -> f64 {
return value * 1.15078;
}
/// Converts the supplied Knots value to Kilometres Per Hour
/// # Arguments
/// * `value` - The Knots input value
pub fn to_kilometres_per_hour(value: f64) -> f64 {
return value * 1.852;
}
/// Converts the supplied Knots value to Feet Per Second
/// # Arguments
/// * `value` - The Knots input value
pub fn to_feet_per_second(value: f64) -> f64 {
return value * 1.68781;
}
/// Converts the supplied Knots value to Metres Per Second
/// # Arguments
/// * `value` - The Knots input value
pub fn to_metres_per_second(value: f64) -> f64 {
return value / 1.94384;
}
}
/// Metres Per Second conversion functions
pub mod metres_per_second {
/// Converts the supplied Metres Per Second value to Miles Per Hour
/// # Arguments
/// * `value` - The Metres Per Second input value
pub fn to_miles_per_hour(value: f64) -> f64 {
return value * 2.23694;
}
/// Converts the supplied Metres Per Second value to Kilometres Per Hour
/// # Arguments
/// * `value` - The Metres Per Second input value
pub fn to_kilometres_per_hour(value: f64) -> f64 {
return value * 3.6;
}
/// Converts the supplied Metres Per Second value to Feet Per Second
/// # Arguments
/// * `value` - The Metres Per Second input value
pub fn to_feet_per_second(value: f64) -> f64 {
return value * 3.28084;
}
/// Converts the supplied Metres Per Second value to Knots
/// # Arguments
/// * `value` - The Metres Per Second input value
pub fn to_knots(value: f64) -> f64 {
return value * 1.94384;
}
}
/// Miles Per Hour conversion functions
pub mod miles_per_hour {
/// Converts the supplied Miles Per Hour value to Kilometres Per Hour
/// # Arguments
/// * `value` - The Miles Per Hour input value
pub fn to_kilometres_per_hour(value: f64) -> f64 {
return value * 1.60934;
}
/// Converts the supplied Miles Per Hour value to Feet Per Second
/// # Arguments
/// * `value` - The Miles Per Hour input value
pub fn to_feet_per_second(value: f64) -> f64 {
return value * 1.46667;
}
/// Converts the supplied Miles Per Hour value to Metres Per Second
/// # Arguments
/// * `value` - The Miles Per Hour input value
pub fn to_metres_per_second(value: f64) -> f64 {
return value / 2.23694;
}
/// Converts the supplied Miles Per Hour value to Knots
/// # Arguments
/// * `value` - The Miles Per Hour input value
pub fn to_knots(value: f64) -> f64 {
return value / 1.15078;
}
}