-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from Leo-Corporation/doc
Updated documentation
- Loading branch information
Showing
179 changed files
with
899 additions
and
431 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Energies | ||
This page is about the `Energies` class available in [`PeyrSharp.Core.Converters`](/core/converters.md). | ||
You can find here all of its methods. | ||
|
||
::: info | ||
This class is `static`. | ||
::: | ||
|
||
## Compatibility | ||
|
||
The `Energies` class is part of the `PeyrSharp.Core` module, which is compatible with all of these frameworks and platforms: | ||
|
||
| Package/Platform | Windows | macOS | Linux + others | | ||
|------------------ |--------- |------- |---------------- | | ||
| Core | ✅ | ✅ | ✅ | | ||
| **Framework** | **.NET 5** | **.NET 6** | **.NET 7** | | ||
| Core | ✅ | ✅ | ✅ | | ||
|
||
## Methods | ||
### CaloriesToJoules(calories) | ||
#### Definition | ||
|
||
Converts calories to joules. | ||
|
||
#### Arguments | ||
|
||
| Type | Name | Meaning | | ||
|----------|------------|-----------------------------------------------------| | ||
| `double` | `calories` | The amount of energy in calories to be converted. | | ||
|
||
#### Returns | ||
|
||
The equivalent amount of energy in joules. | ||
|
||
#### Usage | ||
|
||
~~~ c# | ||
using PeyrSharp.Core.Converters; | ||
|
||
double calories = 100.0; | ||
double joules = Energies.CaloriesToJoules(calories); | ||
~~~ | ||
|
||
### JoulesToCalories(joules) | ||
#### Definition | ||
|
||
Converts joules to calories. | ||
|
||
#### Arguments | ||
|
||
| Type | Name | Meaning | | ||
| -------- | -------- | ---------------------------- | | ||
| `double` | `joules` | The amount of energy in joules. | | ||
|
||
#### Returns | ||
|
||
The equivalent amount of energy in calories. | ||
|
||
#### Usage | ||
|
||
~~~ c# | ||
using PeyrSharp.Core.Converters; | ||
|
||
double joules = 1000.0; | ||
double calories = Energies.JoulesToCalories(joules); | ||
~~~ |
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,217 @@ | ||
# Speeds | ||
This page is about the `Speeds` class available in [`PeyrSharp.Core.Converters`](/core/converters.md). | ||
You can find here all of its methods. | ||
|
||
::: info | ||
This class is `static`. | ||
::: | ||
|
||
## Compatibility | ||
|
||
The `Speeds` class is part of the `PeyrSharp.Core` module, which is compatible with all of these frameworks and platforms: | ||
|
||
| Package/Platform | Windows | macOS | Linux + others | | ||
|------------------ |--------- |------- |---------------- | | ||
| Core | ✅ | ✅ | ✅ | | ||
| **Framework** | **.NET 5** | **.NET 6** | **.NET 7** | | ||
| Core | ✅ | ✅ | ✅ | | ||
|
||
## Methods | ||
### KnotsToKilometersPerHour(knots) | ||
#### Definition | ||
|
||
Converts knots to kilometers per hour. | ||
|
||
#### Arguments | ||
|
||
| Type | Name | Meaning | | ||
|----------- |----------- |--------------------------------- | | ||
| `double` | `knots` | The speed in knots. | | ||
|
||
#### Returns | ||
|
||
The equivalent speed in kilometers per hour. | ||
|
||
#### Usage | ||
|
||
~~~ c# | ||
using PeyrSharp.Core.Converters; | ||
|
||
double speedInKnots = 20.0; | ||
double speedInKilometersPerHour = Speeds.KnotsToKilometersPerHour(speedInKnots); | ||
Console.WriteLine($"{speedInKnots} knots is equivalent to {speedInKilometersPerHour} km/h"); | ||
~~~ | ||
|
||
### KilometersPerHourToKnots(kilometersPerHour) | ||
|
||
#### Definition | ||
|
||
Converts kilometers per hour to knots. | ||
|
||
#### Arguments | ||
|
||
| Type | Name | Description | | ||
|----------- |---------------------- |--------------------------------- | | ||
| `double` | `kilometersPerHour` | The speed in kilometers per hour. | | ||
|
||
#### Returns | ||
|
||
The equivalent speed in knots. | ||
|
||
#### Usage | ||
|
||
~~~ c# | ||
using PeyrSharp.Core.Converters; | ||
|
||
double speedInKilometersPerHour = 40.0; | ||
double speedInKnots = Speeds.KilometersPerHourToKnots(speedInKilometersPerHour); | ||
Console.WriteLine($"{speedInKilometersPerHour} km/h is equivalent to {speedInKnots} knots"); | ||
~~~ | ||
|
||
### KnotsToMilesPerHour(knots) | ||
|
||
#### Definition | ||
Converts knots to miles per hour. | ||
|
||
#### Arguments | ||
| Type | Name | Description | | ||
|-----------|-------|--------------------| | ||
| `double` | `knots` | The speed in knots. | | ||
|
||
#### Returns | ||
The equivalent speed in miles per hour. | ||
|
||
#### Usage | ||
~~~ c# | ||
using PeyrSharp.Core.Converters; | ||
|
||
double speedInKnots = 20.0; | ||
double speedInMilesPerHour = Speeds.KnotsToMilesPerHour(speedInKnots); | ||
Console.WriteLine($"{speedInKnots} knots is equivalent to {speedInMilesPerHour} mph"); | ||
~~~ | ||
|
||
### MilesPerHourToKnots(milesPerHour) | ||
#### Definition | ||
|
||
Converts miles per hour to knots. | ||
|
||
#### Arguments | ||
|
||
| Type | Name | Description | | ||
|----------- |--------------- |--------------------------- | | ||
| `double` | `milesPerHour` | The speed in miles per hour.| | ||
|
||
#### Returns | ||
|
||
The equivalent speed in knots. | ||
|
||
#### Usage | ||
|
||
~~~ c# | ||
using PeyrSharp.Core.Converters; | ||
|
||
double speedInMilesPerHour = 60.0; | ||
double speedInKnots = Speeds.MilesPerHourToKnots(speedInMilesPerHour); | ||
Console.WriteLine($"{speedInMilesPerHour} miles/hour is equivalent to {speedInKnots} knots"); | ||
~~~ | ||
|
||
### KilometersPerHourToMetersPerSecond(kilometersPerHour) | ||
|
||
#### Definition | ||
|
||
Converts kilometers per hour to meters per second. | ||
|
||
#### Arguments | ||
|
||
| Type | Name | Description | | ||
|---------------------------|---------------------|-----------------------------------------------------| | ||
| `double` | `kilometersPerHour` | The speed in kilometers per hour. | | ||
|
||
#### Returns | ||
|
||
The equivalent speed in meters per second. | ||
|
||
#### Usage | ||
|
||
~~~ c# | ||
using PeyrSharp.Core.Converters; | ||
|
||
double speedInKilometersPerHour = 100.0; | ||
double speedInMetersPerSecond = Speeds.KilometersPerHourToMetersPerSecond(speedInKilometersPerHour); | ||
Console.WriteLine($"{speedInKilometersPerHour} km/h is equivalent to {speedInMetersPerSecond} m/s"); | ||
~~~ | ||
|
||
### MetersPerSecondToKilometersPerHour(metersPerSecond) | ||
#### Definition | ||
|
||
Converts meters per second to kilometers per hour. | ||
|
||
#### Arguments | ||
|
||
| Type | Name | Meaning | | ||
|---------------|-------------------|-----------------------------| | ||
| `double` | `metersPerSecond` | The speed in meters per second. | | ||
|
||
#### Returns | ||
|
||
The equivalent speed in kilometers per hour. | ||
|
||
#### Usage | ||
|
||
~~~ c# | ||
using PeyrSharp.Core.Converters; | ||
|
||
double speedInMetersPerSecond = 10.0; | ||
double speedInKilometersPerHour = Speeds.MetersPerSecondToKilometersPerHour(speedInMetersPerSecond); | ||
Console.WriteLine($"{speedInMetersPerSecond} m/s is equivalent to {speedInKilometersPerHour} km/h"); | ||
~~~ | ||
|
||
### MilesPerHourToKilometersPerHour(milesPerHour) | ||
#### Definition | ||
|
||
Converts miles per hour to kilometers per hour. | ||
|
||
#### Arguments | ||
|
||
| Type | Name | Description | | ||
|----------- |--------------- |-------------------------------- | | ||
| `double` | `milesPerHour` | The speed in miles per hour. | | ||
|
||
#### Returns | ||
|
||
The equivalent speed in kilometers per hour. | ||
|
||
#### Usage | ||
|
||
~~~ c# | ||
using PeyrSharp.Core.Converters; | ||
|
||
double speedInMilesPerHour = 60.0; | ||
double speedInKilometersPerHour = Speeds.MilesPerHourToKilometersPerHour(speedInMilesPerHour); | ||
Console.WriteLine($"{speedInMilesPerHour} mph is equivalent to {speedInKilometersPerHour} km/h"); | ||
~~~ | ||
|
||
### KilometersPerHourToMilesPerHour(kilometersPerHour) | ||
#### Definition | ||
|
||
Converts kilometers per hour to miles per hour. | ||
|
||
#### Arguments | ||
|
||
| Type | Name | Description | | ||
|----------- |--------------------- |--------------------------------------- | | ||
| `double` | `kilometersPerHour` | The speed in kilometers per hour. | | ||
|
||
#### Returns | ||
|
||
The equivalent speed in miles per hour. | ||
|
||
#### Usage | ||
|
||
~~~ c# | ||
using PeyrSharp.Core.Converters; | ||
|
||
double speedInKilometersPerHour = 50.0; | ||
double speedInMilesPerHour = Speeds.KilometersPerHourToMilesPerHour(speedInKilometersPerHour); | ||
Console.WriteLine($"{speedInKilometersPerHour} km/h is equivalent to {speedInMilesPerHour} mph"); | ||
~~~ |
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
Oops, something went wrong.