mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-26 12:18:48 +00:00
Use file-scoped namespaces
This commit is contained in:
parent
37c7b74379
commit
d4e3c8ab50
@ -1,12 +1,12 @@
|
|||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
|
|
||||||
namespace X10D
|
namespace X10D;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Represents an enumeration of endianness values.
|
||||||
|
/// </summary>
|
||||||
|
public enum Endianness
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// Represents an enumeration of endianness values.
|
|
||||||
/// </summary>
|
|
||||||
public enum Endianness
|
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The value should be read as though it uses little endian encoding.
|
/// The value should be read as though it uses little endian encoding.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -18,5 +18,4 @@ namespace X10D
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[Description("The value should be read as though it uses big endian encoding.")]
|
[Description("The value should be read as though it uses big endian encoding.")]
|
||||||
BigEndian
|
BigEndian
|
||||||
}
|
|
||||||
}
|
}
|
@ -1,10 +1,10 @@
|
|||||||
namespace X10D
|
namespace X10D;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Provides static helpers methods for mathematical functions not found in the .NET <see cref="System.Math" /> class.
|
||||||
|
/// </summary>
|
||||||
|
public static class MathUtils
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// Provides static helpers methods for mathematical functions not found in the .NET <see cref="System.Math" /> class.
|
|
||||||
/// </summary>
|
|
||||||
public static class MathUtils
|
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Linearly interpolates from one value to a target using a specified alpha.
|
/// Linearly interpolates from one value to a target using a specified alpha.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -36,5 +36,4 @@
|
|||||||
// "precise" method: (1 - t) * a + t * b
|
// "precise" method: (1 - t) * a + t * b
|
||||||
return ((1.0 - alpha) * value) + (alpha * target);
|
return ((1.0 - alpha) * value) + (alpha * target);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
namespace X10D
|
namespace X10D;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Represents a class which contains a <see cref="string" /> parser which converts into <see cref="TimeSpan" />.
|
||||||
|
/// </summary>
|
||||||
|
public static class TimeSpanParser
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// Represents a class which contains a <see cref="string" /> parser which converts into <see cref="TimeSpan" />.
|
|
||||||
/// </summary>
|
|
||||||
public static class TimeSpanParser
|
|
||||||
{
|
|
||||||
private const string RealNumberPattern = @"(\d*\.\d+|\d+)";
|
private const string RealNumberPattern = @"(\d*\.\d+|\d+)";
|
||||||
|
|
||||||
private static readonly string Pattern = $"^(?:{RealNumberPattern} *y)? *" +
|
private static readonly string Pattern = $"^(?:{RealNumberPattern} *y)? *" +
|
||||||
@ -99,5 +99,4 @@ namespace X10D
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user