1
0
mirror of https://github.com/oliverbooth/VpSharp synced 2024-11-23 00:48:47 +00:00

Offer Position in Coordinates struct

This commit is contained in:
Oliver Booth 2022-12-08 17:55:17 +00:00
parent b1b9d59cfd
commit 703f099187
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634

View File

@ -92,6 +92,21 @@ public readonly partial struct Coordinates : IEquatable<Coordinates>, IFormattab
/// </value> /// </value>
public bool IsRelative { get; init; } public bool IsRelative { get; init; }
/// <summary>
/// Gets or initializes the position by accessing the <see cref="X" />, <see cref="Y" />, and <see cref="Z" /> properties.
/// </summary>
/// <value>The position encoded in these coordinates.</value>
public Vector3d Position
{
get => new(X, Y, Z);
init
{
X = value.X;
Y = value.Y;
Z = value.Z;
}
}
/// <summary> /// <summary>
/// Gets or initializes the world. /// Gets or initializes the world.
/// </summary> /// </summary>