geometry
HorizontalName
find the name of the horizontal axis used to define an object
Calling Sequence
Parameters
Description
Examples
HorizontalName(obj)
obj
-
line, triangle, circle, parabola, ellipse, or hyperbola
The routine returns the name of the horizontal axis used to define obj. It returns either a name or FAIL.
The environment variables _EnvHorizontalName and _EnvVerticalName can be assigned names that are used as the names of the horizontal and vertical axes, respectively.
The command with(geometry,HorizontalName) allows the use of the abbreviated form of this command.
with⁡geometry:
point⁡A,0,0,point⁡B,1,1:
line⁡l,A,B
l
detail⁡l
assume that the names of the horizontal and vertical axes are _x and _y, respectively
name of the objectlform of the objectline2dequation of the line−_x+_y=0
HorizontalName⁡l
FAIL
The horizontal and vertical axes do not have names. Assign names to the axes.
_EnvHorizontalName≔a:_EnvVerticalName≔b:
Equation⁡l
−a+b=0
Request the name of the horizontal axis again.
a
name of the objectlform of the objectline2dequation of the line−a+b=0
See Also
geometry[VerticalName]
Download Help Document