Removed CSWinRT dependency
このコミットが含まれているのは:
1 親
6a5826fdcc
コミット
b9fdbc7a07
9ファイル変更
+6
-100
検索条件に一致するファイルはありません
@@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net5.0-windows10.0.19041.0</TargetFramework>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net5.0-windows10.0.19041.0</TargetFramework>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net5.0-windows10.0.19041.0</TargetFramework>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0-windows10.0.19041.0</TargetFramework>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0-windows10.0.19041.0</TargetFramework>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0-windows10.0.19041.0</TargetFramework>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<LangVersion>preview</LangVersion>
|
||||
<Nullable>enable</Nullable>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
using System.Diagnostics.Contracts;
|
||||
using System.Numerics;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Windows.Foundation
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see langword="class"/> with some extension methods for the <see cref="Point"/> type.
|
||||
/// </summary>
|
||||
public static class PointExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Converts a <see cref="Point"/> value to a <see cref="Vector2"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The input <see cref="Point"/> to convert.</param>
|
||||
/// <returns>A <see cref="Vector2"/> value representing the input <see cref="Point"/>.</returns>
|
||||
[Pure]
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static Vector2 ToVector2(this Point value) => new((float)value.X, (float)value.Y);
|
||||
|
||||
/// <summary>
|
||||
/// Converts a <see cref="Vector2"/> value to a <see cref="Point"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The input <see cref="Vector2"/> to convert.</param>
|
||||
/// <returns>A <see cref="Point"/> value representing the input <see cref="Vector2"/>.</returns>
|
||||
[Pure]
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static Point ToPoint(this Vector2 value) => new(value.X, value.Y);
|
||||
}
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
using System.Diagnostics.Contracts;
|
||||
using System.Numerics;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Windows.Foundation
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see langword="class"/> with some extension methods for the <see cref="Rect"/> type.
|
||||
/// </summary>
|
||||
public static class RectExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Converts a <see cref="Rect"/> value to a <see cref="Vector2"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The input <see cref="Rect"/> to convert.</param>
|
||||
/// <returns>A <see cref="Vector2"/> value representing the input <see cref="Rect"/>.</returns>
|
||||
/// <remarks>The input <see cref="Rect"/> is read in the following order: <see cref="Rect.Left"/>, <see cref="Rect.Top"/>, <see cref="Rect.Right"/>, <see cref="Rect.Bottom"/>.</remarks>
|
||||
[Pure]
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static Vector4 ToVector2(this Rect value) => new((float)value.Left, (float)value.Top, (float)value.Right, (float)value.Bottom);
|
||||
|
||||
/// <summary>
|
||||
/// Converts a <see cref="Vector2"/> value to a <see cref="Rect"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The input <see cref="Vector2"/> to convert.</param>
|
||||
/// <returns>A <see cref="Rect"/> value representing the input <see cref="Vector2"/>.</returns>
|
||||
/// <remarks>The input <see cref="Vector4"/> is assigned in the following order: <see cref="Rect.Left"/>, <see cref="Rect.Top"/>, <see cref="Rect.Right"/>, <see cref="Rect.Bottom"/>.</remarks>
|
||||
[Pure]
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static Rect ToPoint(this Vector4 value) => new(value.X, value.Y, value.Z, value.W);
|
||||
}
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
using System.Diagnostics.Contracts;
|
||||
using System.Numerics;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Windows.Foundation
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see langword="class"/> with some extension methods for the <see cref="Size"/> type.
|
||||
/// </summary>
|
||||
public static class SizeExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Converts a <see cref="Size"/> value to a <see cref="Vector2"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The input <see cref="Size"/> to convert.</param>
|
||||
/// <returns>A <see cref="Vector2"/> value representing the input <see cref="Size"/>.</returns>
|
||||
/// <remarks>The input <see cref="Size"/> is read in the following order: <see cref="Size.Width"/>, <see cref="Size.Height"/>.</remarks>
|
||||
[Pure]
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static Vector2 ToVector2(this Size value) => new((float)value.Width, (float)value.Height);
|
||||
|
||||
/// <summary>
|
||||
/// Converts a <see cref="Vector2"/> value to a <see cref="Size"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The input <see cref="Vector2"/> to convert.</param>
|
||||
/// <returns>A <see cref="Point"/> value representing the input <see cref="Vector2"/>.</returns>
|
||||
/// <remarks>The input <see cref="Size"/> is assigned in the following order: <see cref="Size.Width"/>, <see cref="Size.Height"/>.</remarks>
|
||||
[Pure]
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static Size ToPoint(this Vector2 value) => new(value.X, value.Y);
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする