Atan2 relative to custom axis - Relative Planes

I’m trying to preform an Atan2 function on a set of coordinates. I want to perform this operations around a custom plane. I’m a little lost on how to set the function to the custom plane rather than the world plane.

Thanks!

Capture2 RelativeCoordinates.gh (12.3 KB)

Use your points (from intersection) with the center points to make vectors, then use calculate the angle between world X vector and your created vector, and use XY world plane as optional plane.

1 Like

Try to use Plane Coordinatescomponent.

RelativeCoordinates_re.gh (15.0 KB)

1 Like

Thanks HS_Kim! This is exactly what I was trying to do.

I think Riccardo’s method would of worked as well (Pictured below), but I didn’t truly play around with it yet.