The Setup: We are dropping into a coordinate geometry map for this one. We have a square bounding box and a circle spawning inside it, touching the walls. By setting a strategic origin point, we can turn this messy geometry problem into a pure algebra speedrun. I have fully audited the coordinates to ensure the hitbox interactions are completely accurate.
Step 1: Setting the Origin (The Spawn Point)
Let's anchor the square's corner B exactly at the origin (0,0).
Since the square's side length is AB=18 cm, we can lock in the corner coordinates:
* B=(0,0)
* C=(18,0)
* A=(0,18)
* D=(18,18)
Step 2: Defining the Circle's Hitbox
The circle has a radius r=13 cm. It touches side AB (which sits on the y-axis) and side BC (which sits on the x-axis).
Because it is perfectly tangent to both axes in the positive quadrant, its center O must be at (r,r), which is (13,13).
The equation of the circle is locked in:
(x−13)2+(y−13)2=132
(x−13)2+(y−13)2=169
Step 3: Locating the Intersections
The circle touches AB at M, so M is simply the y-intercept at (0,13).
The circle intersects CD at point P. Side CD is the vertical line x=18.
Substitute x=18 into the circle's equation to find P's exact y-coordinate:
(18−13)2+(y−13)2=169
52+(y−13)2=169
25+(y−13)2=169
(y−13)2=144
y−13=±12
Since P must lie on the physical segment CD, its y-coordinate must be between 0 and 18. So we take the subtraction route: y=13−12=1.
Our point P is officially at (18,1).
Step 4: Calculating the Triangle Area
We need the area of △PMD. Let's pull the coordinates of our vertices:
* M=(0,13)
* P=(18,1)
* D=(18,18)
Notice that P and D both lie on the exact same vertical line (x=18). We can treat the segment PD as the base of our triangle to completely cheese the calculation.
Base length PD=18−1=17 units.
The height of the triangle is the perpendicular horizontal distance from the base line (x=18) back to the third point M (at x=0).
Height =18−0=18 units.
Area=21×base×height
Area=21×17×18
Area=17×9=153
Step 5: The Audit (Double Check Protocol)
Running the shoelace formula (determinant method) to double-check the area calculation and guarantee zero errors.
Area=0.5×∣x1(y2−y3)+x2(y3−y1)+x3(y1−y2)∣
Area=0.5×∣0(1−18)+18(18−13)+18(13−1)∣
Area=0.5×∣0+18(5)+18(12)∣
Area=0.5×∣90+216∣
Area=0.5×306=153
Both methods yield exactly 153. The geometry holds up perfectly. The math is flawless.
Final Answer: 153