Offset Calculation during rotation of mesh

Hi All,

I am undergoing one task that is snapping,so I am able to snap multiple objects but I got stucked in offsetting part.

Can you able to help me to understand the offset algorithm please?
Thanks in advance :slight_smile:

If you want us to help you will need to provide a bit more than that. explain what exactly you are trying to achieve, share a playground