Skip to content

Commit 5ea63c4

Browse files
committed
Regenerate units after merging in partial PR on Density fix
1 parent d1b3ba4 commit 5ea63c4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

UnitsNet/GeneratedCode/UnitClasses/Density.g.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public double KilopoundsPerCubicFoot
130130
/// </summary>
131131
public double KilopoundsPerCubicInch
132132
{
133-
get { return (_kilogramsPerCubicMeter/27679.904710191) / 1e3d; }
133+
get { return (_kilogramsPerCubicMeter*3.6127298147753e-5) / 1e3d; }
134134
}
135135

136136
/// <summary>
@@ -146,7 +146,7 @@ public double PoundsPerCubicFoot
146146
/// </summary>
147147
public double PoundsPerCubicInch
148148
{
149-
get { return _kilogramsPerCubicMeter/27679.904710191; }
149+
get { return _kilogramsPerCubicMeter*3.6127298147753e-5; }
150150
}
151151

152152
/// <summary>
@@ -187,7 +187,7 @@ public static Density Zero
187187
/// </summary>
188188
public static Density FromKilogramsPerCubicCentimeter(double kilogramspercubiccentimeter)
189189
{
190-
return new Density(kilogramspercubiccentimeter*1e+6);
190+
return new Density(kilogramspercubiccentimeter/1e-6);
191191
}
192192

193193
/// <summary>
@@ -203,7 +203,7 @@ public static Density FromKilogramsPerCubicMeter(double kilogramspercubicmeter)
203203
/// </summary>
204204
public static Density FromKilogramsPerCubicMillimeter(double kilogramspercubicmillimeter)
205205
{
206-
return new Density(kilogramspercubicmillimeter*1e+9);
206+
return new Density(kilogramspercubicmillimeter/1e-9);
207207
}
208208

209209
/// <summary>
@@ -219,7 +219,7 @@ public static Density FromKilopoundsPerCubicFoot(double kilopoundspercubicfoot)
219219
/// </summary>
220220
public static Density FromKilopoundsPerCubicInch(double kilopoundspercubicinch)
221221
{
222-
return new Density((kilopoundspercubicinch*27679.904710191) * 1e3d);
222+
return new Density((kilopoundspercubicinch/3.6127298147753e-5) * 1e3d);
223223
}
224224

225225
/// <summary>
@@ -235,31 +235,31 @@ public static Density FromPoundsPerCubicFoot(double poundspercubicfoot)
235235
/// </summary>
236236
public static Density FromPoundsPerCubicInch(double poundspercubicinch)
237237
{
238-
return new Density(poundspercubicinch*27679.904710191);
238+
return new Density(poundspercubicinch/3.6127298147753e-5);
239239
}
240240

241241
/// <summary>
242242
/// Get Density from TonnesPerCubicCentimeter.
243243
/// </summary>
244244
public static Density FromTonnesPerCubicCentimeter(double tonnespercubiccentimeter)
245245
{
246-
return new Density(tonnespercubiccentimeter*1e+9);
246+
return new Density(tonnespercubiccentimeter/1e-9);
247247
}
248248

249249
/// <summary>
250250
/// Get Density from TonnesPerCubicMeter.
251251
/// </summary>
252252
public static Density FromTonnesPerCubicMeter(double tonnespercubicmeter)
253253
{
254-
return new Density(tonnespercubicmeter*1000);
254+
return new Density(tonnespercubicmeter/0.001);
255255
}
256256

257257
/// <summary>
258258
/// Get Density from TonnesPerCubicMillimeter.
259259
/// </summary>
260260
public static Density FromTonnesPerCubicMillimeter(double tonnespercubicmillimeter)
261261
{
262-
return new Density(tonnespercubicmillimeter*1e+12);
262+
return new Density(tonnespercubicmillimeter/1e-9);
263263
}
264264

265265
#if !WINDOWS_UWP

0 commit comments

Comments
 (0)