Example #1
0
 public override void InitializeUnitMappings(MappingsInitializer initializer)
 {
     initializer.AddMapping("m", 1E2);
     initializer.AddMapping("ft", 30.48);
     initializer.AddMapping("in", 2.54);
 }
Example #2
0
 public override void InitializeUnitMappings(MappingsInitializer initializer)
 {
     initializer.AddMapping("in", 1 / 12.0);
     initializer.AddMapping("m", 1 / 0.3048);
     initializer.AddMapping("cm", 1 / 30.48);
 }
Example #3
0
 public override void InitializeUnitMappings(MappingsInitializer initializer)
 {
     initializer.AddMapping("cm", 1E-2);
     initializer.AddMapping("ft", 0.3048);
     initializer.AddMapping("in", 0.0254);
 }
Example #4
0
 public override void InitializeUnitMappings(MappingsInitializer initializer)
 {
     initializer.AddMapping("kg", 0.45359237);
     initializer.AddMapping("g", 453.59237);
 }
Example #5
0
 public override void InitializeUnitMappings(MappingsInitializer initializer)
 {
     initializer.AddMapping("kg", 1E3);
     initializer.AddMapping("lb", 0.00220462262);
 }
Example #6
0
 public override void InitializeUnitMappings(MappingsInitializer initializer)
 {
     initializer.AddMapping("g", 1E-3);
     initializer.AddMapping("lb", 2.20462262);
 }
Example #7
0
 public override void InitializeUnitMappings(MappingsInitializer initializer)
 {
     initializer.AddMapping("ft", 12);
     initializer.AddMapping("cm", 1 / 2.54);
     initializer.AddMapping("m", 1 / 0.0254);
 }