geometry
reflection
find the reflection of a geometric object with respect to a given point or line
Calling Sequence
Parameters
Description
Examples
reflection(Q, P, c)
Q
-
the name of the object to be created
P
geometric object
c
point or line
Let c be a fixed point in the plane. By the reflection (or half-turn) R⁡c in point c we mean the transformation of the plane S onto itself which carries each point P of the plane into the point Q of the plane such that c is the midpoint of PQ. Point c is called the center of the reflection.
Let c be a fixed line in the plane. By the reflection R⁡c about line c we mean the transformation of the plane S onto itself which carries each point P of the plane into the point Q of the plane such that c goes through the midpoint of PQ and is perpendicular to PQ.
For a detailed description of the object created Q, use the routine detail (i.e., detail(Q))
The command with(geometry,reflection) allows the use of the abbreviated form of this command.
with⁡geometry:
reflection of a point with respect to a line
point⁡P,2,3,line⁡l,a+b=1,a,b
P,l
reflection⁡Q,P,l
coordinates⁡Q
−2,−1
reflection of a line with respect to a line
line⁡x_axis,y=0,x,y:
reflection⁡l1,l,x_axis:
draw⁡l,l1
reflection of a circle with respect to a line
circle⁡c,point⁡OO,0,0,1:
detail⁡c
assume that the names of the horizontal and vertical axes are _x and _y, respectively
name of the objectcform of the objectcircle2dname of the centerOOcoordinates of the center0,0radius of the circle1equation of the circle_x2+_y2−1=0
line⁡l1,point⁡a1,1,0,point⁡a2,0,1:
line⁡l2,point⁡b1,−1,0,point⁡b2,0,1:
line⁡l3,point⁡c1,−1,0,point⁡c2,0,−1:
line⁡l4,point⁡d1,0,−1,point⁡d2,1,0:
reflection⁡c1,c,l1:reflection⁡c2,c,l2:
reflection⁡c3,c,l3:reflection⁡c4,c,l4:
draw⁡c1,c2,c3,c4,c⁡color=orange,color=blue,axes=BOX,style=POINT,symbol=DIAMOND
See Also
geometry/objects
geometry/transformation
Download Help Document