Determining new position from existing position and heading

This in my mind is more of a general game dev question but I’m wondering if there a built in way to do it in FiveM.

Say I have a known position {x1,y1} and heading h. I want to calculate a new position {x2,y2} following that heading a specific distance away. I know that subtracting vectors give me the distance between them but with FiveM vectors or natives can I do something with {x1,y2}, h and d then derive {x2,y2}?

The goal here is to try to spawn an entity in a location of that location is blocked then try again 3.0 along the heading value, if that’s still blocked try another 3.0, etc. I want to avoid having to predefined known locations and just project until I find a clear position.