[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dr. Geo] proportionOf:to: method ?
From: |
address@hidden |
Subject: |
[Dr. Geo] proportionOf:to: method ? |
Date: |
Fri, 17 May 2024 21:42:08 +0200 (CEST) |
There exists an instance method lengthOf: for the class DrGeoSketch which
returns the length of (for example) a segment of a line.
That works for me, and when I interactively change in the DrGeo
SmalltalkSketch Editor the segment between two points, the length value is also
updated automatically.
Is there an instance method which computes the constant of proportionality for
two segments ?
A method for DrGeoSketch : proportionOf:segment1 to:segment2
The message proportionOf:to: could be useful in many situations, perhaps also
for other objects than line segments.
I've searched in the DrGeoSketch class in the browser, but I do not immediately
see a proportionOf:to: method or something similar.
If this would need a "RFE" request for enhancement, how to file such a request
please ?
An application could be to use the message in the following sketch
| sketch a b c A B C AB BC AC E D F G S |
sketch _ DrGeoSketch new.
a _ -2@-4.
b _ 2@-4.
c _ 0@1.
sketch text: 'Hoogtelijnen' at:-4@4.
sketch text: 'Omgekeerd evenredig met de zijden' at:-4@3.
sketch text: 'Waarop ze staan : AD:BE = AC:BC' at:-4@2.
A _ sketch point:a.
A name:'A'.A cross.
B _ sketch point:b.
B name:'B'.B cross.
C _ sketch point:c.
C name:'C'.C cross.
AB _ sketch segment: A to: B.
AC _ sketch segment: A to: C.
BC _ sketch segment: B to: C.
F _ sketch perpendicular:AC at: B.
E _ sketch intersectionOf:F and:AC.
E name:'E'.
G _ sketch perpendicular:BC at: A.
D _ sketch intersectionOf:G and:BC.
D name:'D'.
sketch angle:A to:C to:B.
sketch angle:B to:E to:C.
sketch angle:C to:D to:A.
I'd like to display the constant of proportionality
AD:BE = AC:BC in the above code (see the SVG export in attach for an image).
Thanks,
David Stes
hoogtelijnevenredigheid.svg
Description: image/svg
- [Dr. Geo] proportionOf:to: method ?,
address@hidden <=