Properties
Similar Topics
Statistics
Comments
17
Participants
4
Subscribers
4
Votes
1
Views
1034
Share

How can we draw fixed ray or line , no effect of zoom and moving axes(drag).
Answered
How can draw fixed horizontal and vertical line and ray so that Axes movement( as we drag the axes position) and zooming does not change the position of line.
- GeoGebra
- Help
- Partners
-
Contact us
- Feedback & Questions
- This email address is being protected from spambots. You need JavaScript enabled to view it.
- +43 677 6137 2693
© 2023 International GeoGebra Institute
create the line m
then AttachCopyToView( m, 1 )
Thanks mathmagic. It worked for line . How to do same for ray. It is not working for ray. i can draw horizontal ray from line by fixing domain by if[] command it worked. but for vertical ray i can not fixed domain. like line x=2 and i want ray between -5<= y <= 2 .
I think it is a bug with ray. the command works for line and segment
meantime create two points A,B
C=AttachCopyToView( A, 1 )
D=AttachCopyToView( B, 1 )
then ray(C,D)
x=2&&-5<=y<=2 equal to segment((-5,2),(2,2))
x=2&&-5<=y<=2
x=2&&y<=2
Not working
I mean you must to use segment instead
vertical ray not working it displace position when zoom and axes scale.
C=AttachCopyToView( A, 1 )
D=AttachCopyToView( B, 1 )
then ray(C,D)
one possibility more
Pls see attached. When i draw line and ray separate it worked fine. But when i draw horizontal line and put a point on the line then draw horizontal ray with that point it did not work. It moves with zoom and axes.
use absolut unit 1 (h and v), so the PathParameter of B and C are also absolut
Note: h and v are also the absolute zoom factor relative to standard-view, used when h and v was created (so not a indication in % from the last zoom)
great trick
this solve the question : how get corners of text for a text with "absolute position on screen"?
Thanks, AttachCopyToView(ray,1) fixed for next release (v547)
Comments have been locked on this page!