forked from marcosvf132/TibiaAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPosition.cs
More file actions
38 lines (33 loc) · 766 Bytes
/
Position.cs
File metadata and controls
38 lines (33 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
namespace OXGaming.TibiaAPI.Utilities
{
public class Position
{
public int X { get; set; }
public int Y { get; set; }
public int Z { get; set; }
public Position(int x, int y, int z)
{
X = x;
Y = y;
Z = z;
}
public void SetZero()
{
X = 0;
Y = 0;
Z = 0;
}
public Position Subtract(Position position)
{
return new Position(X - position.X, Y - position.Y, Z - position.Z);
}
public Position Clone()
{
return new Position(X, Y, Z);
}
public override string ToString()
{
return $"{X},{Y},{Z}";
}
}
}