|
From: | Hilaire Fernandes |
Subject: | Re: [Dr. Geo] repo on selected problems in plane geometry |
Date: | Sun, 14 Jul 2024 11:39:06 +0200 |
User-agent: | Mozilla Thunderbird |
Yes! You have to teach DrGeo.
I will use #point: #value: each with a block argument to compute the center and radius of the second circle you want to be inside the other circle.
You can make it so one is tangent to the other one:
| fig c1 center radius | fig := DrGeoSketch new. c1 := fig circleCenter: 0@0 to: 4@0. center := fig point: [:circle | circle center + (circle radius asPoint / 2) ] parent: c1. radius := fig value: [:circle | circle radius - (circle center dist: center coordinates)] parent: c1. fig circleCenter: center radius: radius. (fig point: 4@0) show
Is there a way in DrGeo to force a circle to be contained / inscribed in a given circle ?? In my code I just use 2 random circles which are initially a larger circle, containing a smaller circle,
[Prev in Thread] | Current Thread | [Next in Thread] |