idTech4.Extensions.Compare C# (CSharp) Method

Compare() public static method

public static Compare ( this v2, Vector3 v, float epsilon ) : bool
v2 this
v Vector3
epsilon float
return bool
		public static bool Compare(this Vector3 v2, Vector3 v, float epsilon)
		{
			if(idMath.Abs(v2.X - v.X) > epsilon)
			{
				return false;
			}

			if(idMath.Abs(v2.Y - v.Y) > epsilon)
			{
				return false;
			}

			if(idMath.Abs(v2.Z - v.Z) > epsilon)
			{
				return false;
			}

			return true;
		}