mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
Initial .net 6 upgrades
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text.RegularExpressions;
|
||||
// ReSharper disable CompareOfFloatsByEqualityOperator
|
||||
|
||||
namespace Data.Models
|
||||
{
|
||||
@ -28,7 +29,9 @@ namespace Data.Models
|
||||
return $"({X}, {Y}, {Z})";
|
||||
}
|
||||
|
||||
#pragma warning disable CS0659
|
||||
public override bool Equals(object obj)
|
||||
#pragma warning restore CS0659
|
||||
{
|
||||
if (obj is Vector3 vec)
|
||||
{
|
||||
@ -110,4 +113,4 @@ namespace Data.Models
|
||||
|
||||
public double AngleBetween(Vector3 a) => Math.Acos(this.DotProduct(a) / (a.Magnitude() * this.Magnitude()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user