Collect coordinate group along rotation wall

Hi All,
Good morning

I want to group of coordinates as shown in below image.

I collect the coordinate as shown red cloud is a One Group & Pink cloud is Second Group.
Please guide me how it works.

You can probably get the location curve (element.getlocation) from the wall and offset it on either side by half of the width of the wall. Now you can get the end points and their coordinates.