Difference between revisions of "Corner Command"

From GeoGebra Manual
Jump to: navigation, search
m
(:{{Note|1=Corner[ <Number of Corner> ] won't work inside other commands. Instead create eg <code>C1 = Corner[1]</code> and use that.}})
Line 2: Line 2:
 
; Corner[ <Number of Corner> ]
 
; Corner[ <Number of Corner> ]
 
: For number ''n = 1, 2, 3, 4'' creates a point at the corner of the [[File:Menu view graphics.svg|link=|16px]] [[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 [[File:Menu view graphics1.svg|link=|16px]] [[Graphics View|first Graphics View]], even if second is active.
 
: For number ''n = 1, 2, 3, 4'' creates a point at the corner of the [[File:Menu view graphics.svg|link=|16px]] [[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 [[File:Menu view graphics1.svg|link=|16px]] [[Graphics View|first Graphics View]], even if second is active.
 
+
:{{Note|1=Corner[ <Number of Corner> ] won't work inside other commands. Instead create eg <code>C1 = Corner[1]</code> and use that.}}
 
; Corner[ <Graphics View>, <Number of Corner> ]
 
; Corner[ <Graphics View>, <Number of Corner> ]
 
: Creates a point at the corner of [[File:Menu view graphics.svg|link=|16px]]  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.
 
: Creates a point at the corner of [[File:Menu view graphics.svg|link=|16px]]  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|1=Corner[ <Graphics View>, <Number of Corner> ] won't work inside other commands. Instead create eg <code>C1 = Corner[1, 1]</code> and use that.}}
; Corner[-1, <Number> ]  
+
:{{Note|1=use <code>-1</code> for the [[File:Perspectives_algebra_3Dgraphics.svg|link=|16px]] [[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).}}
: Creates a point at one of the [[File:Perspectives_algebra_3Dgraphics.svg|link=|16px]] [[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> ]
 
; Corner[ <Image>, <Number of Corner> ]

Revision as of 17:46, 19 December 2015


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 C1 = 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 C1 = 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.


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.
© 2024 International GeoGebra Institute