I am attempting to create a dragon curve in Blender Geo nodes via duplicating and rotating a mesh line repeatedly, similar to this gif I found on wikipedia (without the beveling): https://en.wikipedia.org/wiki/Dragon_curve#/media/File:Dragon_Curve_unfolding_zoom_numbered.gif
The Main Issue
I cannot find an easy way to locate the 'end' point in the mesh line, as shown in the gif. I've tried many different solutions, but all of them have failed. I check stack exchange multiple times and could not find a solution. I have hit a brick wall in terms of my very limited toolkit as I am quite new to Geo Nodes, and am still getting my footing. Feel free to ask further questions for more clarity on my part. Here are a few images showcasing my admittedly small problem.