FiE-Game/Assets/Plugins/GameDataEditor/VectorExtensions.cs

15 lines
415 B
C#
Raw Normal View History

2023-07-19 19:11:02 +02:00
// Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// GameDataEditor.VectorExtensions
using GameDataEditor;
using UnityEngine;
namespace GameDataEditor
{
public static class VectorExtensions
{
public static bool NearlyEqual(this Vector3 variable, Vector3 other)
{
return variable.x.NearlyEqual(other.x) && variable.y.NearlyEqual(other.y) && variable.z.NearlyEqual(other.z);
}
}
}