dr-geo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Dr. Geo] proportionOf:to: method ?


From: Hilaire Fernandes
Subject: Re: [Dr. Geo] proportionOf:to: method ?
Date: Sun, 19 May 2024 19:41:49 +0200
User-agent: Mozilla Thunderbird

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/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]