I am making a game in which I want to have a value in an array saved plus its coordinates. For that I use the X and Y coordinates to save the location and the Z axis to store my value. But when searching for an array I just want to search based on the X and Y coordinates because I don’t know the Z Value. Is there any way to ignore the Z axis in the item search?
Maps let your pair two values together, so you could have a map that pair a vector2D or a vector3D with Z set to zero to the actual location which has a the whole location.