|
From: | stes |
Subject: | Re: [Dr. Geo] proportionOf:to: method ? |
Date: | Sun, 19 May 2024 22:55:18 +0200 (CEST) |
Van: Hilaire <hfern@free.fr>
naar: dr-geo <dr-geo@gnu.org>
datum: zondag 19 mei 2024 19:42 CEST
Onderwerp: Re: [Dr. Geo] proportionOf:to: method ?
Hi David,
This is Smalltalk land where the user is empored. Therefore the idea is:
- You add your own category in DrGeoSketch class. Let's say 'David extensions'
- In this category you add the method as you mentioned, for example #proportionOf:to:and:to:
The method will be used proportionOf: A to: B and: C to: D
Take great care in the naming, this is the most important
- You fill the method with the code I show you.
- Then you can fileout the 'David extensions' method category
- To load it back in a new image, you use the FileList tool
I can assist you in the process
Hilaire
Le 18/05/2024 à 19:59, stes@telenet.be a écrit :The code you suggested is fine and is generic, but it would be shorter and more convenient if DrGeo provided a method to compute the constant of proportionality for either 2 line segments or for 4 endpoints ...-- GNU Dr. Geo http://gnu.org/s/dr-geo/ http://gnu-drgeo.blogspot.com/
[Prev in Thread] | Current Thread | [Next in Thread] |