The Interactive Geometry Software Cinderella

Forum: Cinderella Support (E)

Forums->Cinderella Support (E)->Numbers used as labels

dirkd
3 stars
Numbers used as labels


For illustrating the geometrical meaning of complex numbers I would like to label some points as numbers, e.g. 0 and 1. It's easy to do so in the inspector window, but then I run into trouble when referencing these points in textobjects (I tried expressions like @{|"0",z|} ). Is there something subtle in the syntax of Cindyscript that I am missing, or should I just stick to letters for my labels?

 
on: Wed 14 of Feb, 2007 [19:56 UTC] reads: 109657

Posted messages

author message
Aw: Numbers used as labels
on: Wed 14 of Feb, 2007 [20:41 UTC]
Dirk,

yes, it is not possible for CindyScript to understand that 0 means a point in that context.

But we have a solution: I just added a new function element() that will turn a string into the element with that label.

Just try element("0").xy to access the xy coordinates of the point called 0 with build 2.0.17, which is available now from the usual download location: Download Cinderella.2.

Hope that helps,

Ulli








Show posts:
 
Language