diff --git a/VpSharp/src/Entities/VirtualParadiseAvatar.cs b/VpSharp/src/Entities/VirtualParadiseAvatar.cs index ee88b68..65a9687 100644 --- a/VpSharp/src/Entities/VirtualParadiseAvatar.cs +++ b/VpSharp/src/Entities/VirtualParadiseAvatar.cs @@ -118,7 +118,7 @@ public sealed class VirtualParadiseAvatar : IEquatable /// public override bool Equals(object? obj) { - return ReferenceEquals(this, obj) || obj is VirtualParadiseAvatar other && Equals(other); + return ReferenceEquals(this, obj) || (obj is VirtualParadiseAvatar other && Equals(other)); } /// diff --git a/VpSharp/src/Entities/VirtualParadiseUser.cs b/VpSharp/src/Entities/VirtualParadiseUser.cs index ec79cfb..f8836d9 100644 --- a/VpSharp/src/Entities/VirtualParadiseUser.cs +++ b/VpSharp/src/Entities/VirtualParadiseUser.cs @@ -109,7 +109,7 @@ public sealed class VirtualParadiseUser : IEquatable /// public override bool Equals(object? obj) { - return ReferenceEquals(this, obj) || obj is VirtualParadiseUser other && Equals(other); + return ReferenceEquals(this, obj) || (obj is VirtualParadiseUser other && Equals(other)); } /// diff --git a/VpSharp/src/Entities/VirtualParadiseWorld.cs b/VpSharp/src/Entities/VirtualParadiseWorld.cs index 1d1013a..7426668 100644 --- a/VpSharp/src/Entities/VirtualParadiseWorld.cs +++ b/VpSharp/src/Entities/VirtualParadiseWorld.cs @@ -1,4 +1,4 @@ -using System.Drawing; +using System.Drawing; namespace VpSharp.Entities; @@ -105,7 +105,7 @@ public sealed class VirtualParadiseWorld : IEquatable /// public override bool Equals(object? obj) { - return ReferenceEquals(this, obj) || obj is VirtualParadiseWorld other && Equals(other); + return ReferenceEquals(this, obj) || (obj is VirtualParadiseWorld other && Equals(other)); } /// diff --git a/VpSharp/src/Vector3d.cs b/VpSharp/src/Vector3d.cs index 20a555c..35cd6ef 100644 --- a/VpSharp/src/Vector3d.cs +++ b/VpSharp/src/Vector3d.cs @@ -305,10 +305,10 @@ public struct Vector3d : IEquatable, IFormattable /// The cross product. public static Vector3d Cross(Vector3d left, Vector3d right) { - return new( - left.Y * right.Z - left.Z * right.Y, - left.Z * right.X - left.X * right.Z, - left.X * right.Y - left.Y * right.X + return new Vector3d( + (left.Y * right.Z) - (left.Z * right.Y), + (left.Z * right.X) - (left.X * right.Z), + (left.X * right.Y) - (left.Y * right.X) ); } @@ -383,7 +383,7 @@ public struct Vector3d : IEquatable, IFormattable /// The maximized vector. public static Vector3d Max(Vector3d left, Vector3d right) { - return new( + return new Vector3d( Math.Max(left.X, right.X), Math.Max(left.Y, right.Y), Math.Max(left.Z, right.Z) @@ -398,7 +398,7 @@ public struct Vector3d : IEquatable, IFormattable /// The minimized vector. public static Vector3d Min(Vector3d left, Vector3d right) { - return new( + return new Vector3d( Math.Min(left.X, right.X), Math.Min(left.Y, right.Y), Math.Min(left.Z, right.Z)