How to construct a parallelogram with code (Smalltalk sketch)?

classic Classic list List threaded Threaded
3 messages Options
HJH
Reply | Threaded
Open this post in threaded view
|

How to construct a parallelogram with code (Smalltalk sketch)?

HJH
This post was updated on .
Hello

How do I construct a parallelogram [1] with code (Smalltalk sketch [2])?

In particular how do I mark that opposite sides must have the same length?

An example of a parallelogram sketch is provided with the DrGeo release.

Parallelogram

--Hannes


[1]
a parallelogram is a simple (non-self-intersecting) quadrilateral with two pairs of parallel sides. The opposite or facing sides of a parallelogram are of equal length and the opposite angles of a parallelogram are of equal measure. The congruence of opposite sides and opposite angles is a direct consequence of the Euclidean parallel postulate and neither condition can be proven without appealing to the Euclidean parallel postulate or one of its equivalent formulations.

[2] https://www.gnu.org/software/dr-geo/doc/en/Smalltalk-sketch.html#Smalltalk-sketch
Dr.Geo Smalltalk sketches – (DSS) – are sketches entirely defined in the Smalltalk language.
...
When a sketch is defined with it, we can use all the power of the language to build a sketch, or to position some objects randomly to get a slightly different sketch at each execution of its Smalltalk code. Therefore, a Smalltalk sketch is freed from the constraints of the graphic user interface while reinforced by the Smalltalk language.
HJH
Reply | Threaded
Open this post in threaded view
|

Re: How to construct a parallelogram with code (Smalltalk sketch)?

HJH
My suggestion is to add the answer as the initial example to the set of the three examples (gallery) at

https://www.gnu.org/software/dr-geo/doc/en/Smalltalk-sketch.html#Smalltalk-sketch

5.3 Gallery of examples
5.3.1 Animate a figure
5.3.2 Sierpinski triangle
Reply | Threaded
Open this post in threaded view
|

Re: How to construct a parallelogram with code (Smalltalk sketch)?

Hilaire Fernandes
Administrator
Good idea. The chapter should start with example easy to catch.

Hilaire

Le 28/09/2018 à 08:00, HJH [via Dr. Geo Forum] a écrit :
> My suggestion is to add the answer as the initial example to the set
> of the three examples (gallery) at
>
> https://www.gnu.org/software/dr-geo/doc/en/Smalltalk-sketch.html#Smalltalk-sketch
>
> 5.3 Gallery of examples
> 5.3.1 Animate a figure
> 5.3.2 Sierpinski triangle


Was this message helpful?
Tell us!