What software is used to draw mathematical shapes in books like this one?

What software is used to draw mathematical shapes in books like this one?

It is not sure at all it is a computerized drawing!
Some 60 and even 50 years ago, there were graphic designers able to use in a baffling way decals/transfers representing graphic items such as geometrical shapes, arrows etc. + of course scissors and glue to give a first figure.
Then this figure was photographed, and it is (a generally resized version of) this photography that was inserted into the text.