How to see if text is in a certain region?

Anirudh Venkataramanan shared this question 4 months ago
Answered

I know IsInRegion(<Point>, <Region>) exists for points, but is there something similar for texts?


I have two different texts and want the user to drag one text over the other. I want to verify whether the user has successfully dragged the text.

Comments (5)

photo
1

When making dragging exercises I always work with the coordinates of points.If you post your file it will be more concrete, in general I work like this:

Position a text to be dragged to a free point and mark the text as not selectable. Drag the point and control the coordinate of it: in a certain region or equal to another point that matches the right answer of the problem.

chris

photo
1

Try using Corner(text,1), Corner(text1,2), Corner(text1,3), Corner(text1,4)

photo
1

How do I check to see if the user has actually dragged the text into the region marked by the corner points, though?

photo
1

To ask a point is in an polygon use IsInRegion( <Point>, <Region> )

photo
photo
1

Another possibility: see in attached File the definition of object "IsBy" and his using in text2 and text3 (advanced properties)

© 2019 International GeoGebra Institute