[FONT="]I have a problem i can't figure out... [/FONT]

[FONT="]I want to calculate the centroid of a tilted rectangle in a coordinate system (See image) based on the following informations [/FONT]

[FONT="]I know the Y coordinate of corner A [/FONT]

[FONT="]I know the slope of the line b to the X axis based on two known points[/FONT]

[FONT="]I know lenght of a and b[/FONT]

[FONT="]From a given point on line b I need to find the centroid?[/FONT]

[FONT="]So given an example what would the centroid be[/FONT]

[FONT="]a = 10[/FONT]

[FONT="]b = 15[/FONT]

[FONT="]Y coordinate of A is 5[/FONT]

[FONT="]The slope of line b to X can be calculated from two given points 0,10 and 10,15[/FONT]

[FONT="]

From coordinate 0,10 how to[/FONT][FONT="] calculate the centroid?[/FONT]

[FONT="]All the best,[/FONT]

[FONT="]Kris[/FONT]