Centroid of Two Rectangles

Centroid of Two Rectangles
Loading the math board and drawing, please wait…
2019-08-19 12:16
This example demonstrates how to calculate the centroid of two rectangles. Key mathematical concepts include centroid or barycenter, rectangle, and area ratios. Using GeoGebra commands such as Line, Intersect, Polygon, and Centroid, one can visually understand these concepts. Suitable for middle school and above students or teachers.

GeoGebra Commands & Parameters

  1. Line(A, yAxis) → f
  2. Line(B, yAxis) → g
  3. Line(C, yAxis) → h
  4. Line(D, yAxis) → i
  5. Line(A, xAxis) → j
  6. Line(B, xAxis) → k
  7. Line(C, xAxis) → l
  8. Line(D, xAxis) → m
  9. Intersect(k, f) → E
  10. Intersect(j, g) → F
  11. Intersect(l, i) → G
  12. Intersect(m, h) → H
  13. Polygon(A, F, B, E) → q1, a, f_1, b, e
  14. Polygon(C, G, D, H) → q2, c, g_1, d, h_1
  15. IntersectPath(q1, q2) → poly1, I, P, Q, R, k_1, l_1, m_1, n_1
  16. Centroid(q1) → C_1
  17. Centroid(q2) → C_2
  18. Centroid(poly1) → C_3
  19. Defined(poly1) → overlap
  20. If(overlap, A, C_1) → A_1
  21. If(overlap, C_3, C_2) → A_2
  22. Area(q1) → B2
  23. If(overlap, (-Area[poly1]), Area[q2]) → B3