diff --git a/src/Directory.Build.props b/src/Directory.Build.props index e2095c6..6514dcf 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -7,6 +7,7 @@ true 9.0 enable + true true CS1591;CS1701 diff --git a/src/Vortice.Mathematics/Point3.cs b/src/Vortice.Mathematics/Point3.cs index a3bb6a8..cdd350e 100644 --- a/src/Vortice.Mathematics/Point3.cs +++ b/src/Vortice.Mathematics/Point3.cs @@ -24,22 +24,22 @@ public struct Point3 : IEquatable /// /// The X unit (1, 0, 0). /// - public static readonly Point3 UnitX = new Point3(1, 0, 0); + public static readonly Point3 UnitX = new(1, 0, 0); /// /// The Y unit (0, 1, 0). /// - public static readonly Point3 UnitY = new Point3(0, 1, 0); + public static readonly Point3 UnitY = new(0, 1, 0); /// /// The Z unit (0, 0, 1). /// - public static readonly Point3 UnitZ = new Point3(0, 0, 1); + public static readonly Point3 UnitZ = new(0, 0, 1); /// /// A with all of its components set to one. /// - public static readonly Point3 One = new Point3(1, 1, 1); + public static readonly Point3 One = new(1, 1, 1); /// /// Initializes a new instance of the struct. @@ -103,7 +103,7 @@ public Point3(Vector3 value) public int Z { readonly get; set; } /// - /// Gets a value indicating whether this is empty. + /// Gets a value indicating whether this is empty. /// [EditorBrowsable(EditorBrowsableState.Never)] public readonly bool IsEmpty => this == Empty; @@ -126,14 +126,14 @@ public void Deconstruct(out int x, out int y, out int z) /// /// The value to convert. /// The result of the conversion. - public static explicit operator Vector3(Point3 value) => new Vector3(value.X, value.Y, value.Z); + public static explicit operator Vector3(Point3 value) => new(value.X, value.Y, value.Z); /// /// Performs an explicit conversion from to . /// /// The value. /// The result of the conversion. - public static explicit operator Vector4(Point3 value) => new Vector4(value.X, value.Y, value.Z, 0); + public static explicit operator Vector4(Point3 value) => new(value.X, value.Y, value.Z, 0); /// /// Compares two objects for equality.