-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
880 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
xFunc.Maths/Expressions/Units/TemperatureUnits/Temperature.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright (c) Dmytro Kyshchenko. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace xFunc.Maths.Expressions.Units.TemperatureUnits; | ||
|
||
/// <summary> | ||
/// Represents an temperature number. | ||
/// </summary> | ||
public class Temperature : Unit<TemperatureValue> | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="Temperature"/> class. | ||
/// </summary> | ||
/// <param name="value">A temperature number.</param> | ||
public Temperature(TemperatureValue value) | ||
: base(value) | ||
{ | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override TResult AnalyzeInternal<TResult>(IAnalyzer<TResult> analyzer) | ||
=> analyzer.Analyze(this); | ||
|
||
/// <inheritdoc /> | ||
protected override TResult AnalyzeInternal<TResult, TContext>( | ||
IAnalyzer<TResult, TContext> analyzer, | ||
TContext context) | ||
=> analyzer.Analyze(this, context); | ||
} |
25 changes: 25 additions & 0 deletions
25
xFunc.Maths/Expressions/Units/TemperatureUnits/TemperatureUnit.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright (c) Dmytro Kyshchenko. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace xFunc.Maths.Expressions.Units.TemperatureUnits; | ||
|
||
/// <summary> | ||
/// Specifies a measurement of temperature. | ||
/// </summary> | ||
public enum TemperatureUnit | ||
{ | ||
/// <summary> | ||
/// Celsius (°C). | ||
/// </summary> | ||
Celsius, | ||
|
||
/// <summary> | ||
/// Fahrenheit (°F). | ||
/// </summary> | ||
Fahrenheit, | ||
|
||
/// <summary> | ||
/// Kelvin (K). | ||
/// </summary> | ||
Kelvin, | ||
} |
Oops, something went wrong.