Corner Command

From GeoGebra Manual
Jump to: navigation, search


Corner( <Number of Corner> )
For number n = 1, 2, 3, 4 creates a point at the corner of the Menu view graphics.svg Graphics View, for n = 5 returns point (w, h), where w and h are width and height of the Graphics View in pixels. Always uses Menu view graphics1.svg first Graphics View, even if second is active.
Note: Corner( <Number of Corner> ) won't work inside other commands. Instead create eg C_1 = Corner(1) and use that.
Corner( <Graphics View>, <Number of Corner> )
Creates a point at the corner of Menu view graphics.svg Graphics View (1, 2) which is never visible in that view. Supported values of number n are 1, 2, 3, 4 and 5 as above.
Note: Corner( <Graphics View>, <Number of Corner> ) won't work inside other commands. Instead create eg C_1 = Corner(1, 1) and use that.
Note: use -1 for the Perspectives algebra 3Dgraphics.svg 3D Graphics View's corners (available values for Number: from 1 to 8); for n = 9 returns point (w, h, 0), where w and h are width and height of the Graphics View in pixels; for n = 10 returns point (w, h, 0), where w and h are width and height of the main window in pixels; for n = 11 returns view direction (for parallel projections) or eye position (for e.g. perspective projection).
Corner( <Image>, <Number of Corner> )
Creates a point at the corner of the image (number n = 1, 2, 3, 4).
Corner( <Text>, <Number of Corner> )
Creates a point at the corner of the text (number n = 1, 2, 3, 4).
Note: Corner( <Text>, <Number of Corner> ) won't work inside the Sequence or Zip commands. Also the Absolute Position on Screen property must be unchecked


Note: The numbering of the corners is counter‐clockwise and starts at the lower left corner.

Comments

Ideas on how to use the corner command[edit]

Place objects exactly on the screen[edit]

Sometimes you might have trouble finding some objects when you open your GeoGebra file on an different computer. The reason is usually that the resolution of the display is different from the one of your home computer. But there are some possibilities to avoid disappearing objects:

  1. Place the objects close to the upper left corner. As this corner is saved in the file for the position of the visible graphic-area, the objects should be always visible.
  2. Use the Corner command to calculate the position of an object relative to the corners of the Graphics View. For more information look at this brief tutorial.
  • 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
© 2017 International GeoGebra Institute