Hi guys,
I'm kinda lost with my problem after hours of reading and research so I hope you can help!
I have two points (red) on a map like this:

And I like to calculate the two other points and angle in degrees of the rectangle (blue arrows) for a given aspect ratio of the rectangle:

I do not need to draw them on a map, just calculation and just in 2D Cartesian mathematics.
I've looked through all the GeometryEngine methods and couldn't find anything I can do a rotation of a Polyline for example...
It may be possible to do it with Extend and Intersections (also mentioned here) once I can draw the green rectangle... but its kinda complicated.
Anyhow: How do I get/draw the four sides of this rectangle?
Also MultipointBuilder looks promising... but can it draw a rectangle?
Finally reading through geometry help and make-measurements didn't really help. Although it mentions AngularUnits it does not say how to determine an angle of a Polyline or Segment.
Thanks for your help!
Soko
PS: Am I overthinking this to much in a big way? Can I do the calculations with simple trigonometry instead of GeoemtryEngine methods?