Hi everyone,

I have a problem i can't figure out...

I want to calculate the centroid of a tilted rectangle in a coordinate system (See image) based on the following informations

I know the Y coordinate of corner A

I know the slope of the line b to the X axis based on two known points

I know lenght of a and b

From a given point on line b I need to find the centroid?

So given an example what would the centroid be

a = 10

b = 15

Y coordinate of A is 5

The slope of line b to X can be calculated from two given points 0,10 and 10,15

From coordinate 0,10 how to calculate the centroid?

All the best,

Kris