EDNA/Edsm/EdsmApi.cs

50 lines
1.6 KiB
C#
Raw Normal View History

2022-01-20 16:10:10 +01:00
// <copyright file="EdsmApi.cs" company="alterNERDtive">
2022-05-29 13:34:13 +02:00
// Copyright 20212022 alterNERDtive.
2022-01-20 16:10:10 +01:00
//
// This file is part of EDNA.
//
// EDNA is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// EDNA is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with EDNA. If not, see &lt;https://www.gnu.org/licenses/&gt;.
// </copyright>
2022-05-29 14:22:15 +02:00
namespace alterNERDtive.Edna.Edsm
2021-08-10 15:29:20 +02:00
{
2022-02-15 21:16:20 +01:00
/// <summary>
/// Coordinates represent a location in space.
/// </summary>
[System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1649:File name should match first type name", Justification = "Stupid rule :)")]
public struct Coordinates
2021-08-10 15:29:20 +02:00
{
2022-02-15 21:16:20 +01:00
/// <summary>
/// Gets or sets the X coordinate.
/// </summary>
public double X { get; set; }
/// <summary>
/// Gets or sets the Y coordinate.
/// </summary>
public double Y { get; set; }
/// <summary>
/// Gets or sets the Z coordinate.
/// </summary>
public double Z { get; set; }
/// <inheritdoc/>
public override string ToString()
{
return $"({this.X},{this.Y},{this.Z})";
}
2021-08-10 15:29:20 +02:00
}
}