public bool Equals(CoordS other) { return(X == other.X && Y == other.Y && Z == other.Z); }
public readonly CoordS ToShort() { return(CoordS.From((short)X, (short)Y, (short)Z)); }
public MapPlayerSpawn(CoordS coord, CoordS rotation) { this.Coord = coord; this.Rotation = rotation; }
public MapNpc(int id, CoordS coord, CoordS rotation) { this.Id = id; this.Coord = coord; this.Rotation = rotation; }
public static short Distance(CoordS left, CoordS right) { CoordS displacement = left - right; return(displacement.Length()); }
public readonly CoordS Add(CoordS other) { return(From((short)(X + other.X), (short)(Y + other.Y), (short)(Z + other.Z))); }
public readonly CoordS ToShort() => CoordS.From((short)X, (short)Y, (short)Z);
public bool Equals(CoordS other) => X == other.X && Y == other.Y && Z == other.Z;
public static short Distance(CoordS left, CoordS right) => (left - right).Length();