diff --git a/Dalamud/Game/Gui/GameGui.cs b/Dalamud/Game/Gui/GameGui.cs index 8d965c8b2..0d33a7df4 100644 --- a/Dalamud/Game/Gui/GameGui.cs +++ b/Dalamud/Game/Gui/GameGui.cs @@ -279,23 +279,6 @@ namespace Dalamud.Game.Gui return result; } - /// - /// Converts in-world coordinates to screen coordinates (upper left corner origin). - /// - /// Coordinates in the world. - /// Converted coordinates. - /// True if worldPos corresponds to a position in front of the camera. - /// - /// This overload requires a conversion to SharpDX vectors, however the penalty should be negligible. - /// - public bool WorldToScreen(Position3 worldPos, out Vector2 screenPos) - { - // This overload is necessary due to Positon3 implicit operators. - var result = this.WorldToScreen((SharpDX.Vector3)worldPos, out var sharpScreenPos); - screenPos = sharpScreenPos.ToSystem(); - return result; - } - /// /// Converts screen coordinates to in-world coordinates via raycasting. /// diff --git a/Dalamud/Game/Position3.cs b/Dalamud/Game/Position3.cs deleted file mode 100644 index ed477d511..000000000 --- a/Dalamud/Game/Position3.cs +++ /dev/null @@ -1,51 +0,0 @@ -using System.Runtime.InteropServices; - -namespace Dalamud.Game -{ - /// - /// A game native equivalent of a Vector3. - /// - [StructLayout(LayoutKind.Sequential)] - public struct Position3 - { - /// - /// The X of (X,Z,Y). - /// - public float X; - - /// - /// The Z of (X,Z,Y). - /// - public float Z; - - /// - /// The Y of (X,Z,Y). - /// - public float Y; - - /// - /// Initializes a new instance of the struct. - /// - /// The X position. - /// The Z position. - /// The Y position. - public Position3(float x, float z, float y) - { - this.X = x; - this.Z = z; - this.Y = y; - } - - /// - /// Convert this Position3 to a System.Numerics.Vector3. - /// - /// Position to convert. - public static implicit operator System.Numerics.Vector3(Position3 pos) => new(pos.X, pos.Y, pos.Z); - - /// - /// Convert this Position3 to a SharpDX.Vector3. - /// - /// Position to convert. - public static implicit operator SharpDX.Vector3(Position3 pos) => new(pos.X, pos.Z, pos.Y); - } -}