添加了一些用于名称切换数据,可以满足随机名称的要求

This commit is contained in:
2023-11-24 19:54:59 +08:00
parent 1db23be3da
commit 7cbe59ca14
18 changed files with 250 additions and 44 deletions

View File

@@ -9,6 +9,10 @@ namespace XericLibrary.Runtime.MacroLibrary
{
public static class Vector2Extend
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Vector2 OneMinus(this Vector2 a)
=> new Vector2(1 - a.x, 1 - a.y);
[Obsolete("unfinished")]
public static Vector2 Projection(this Vector2 point, Vector3 start, Vector3 end)
{