Get[FileNameJoin[{NotebookDirectory[],"Packages","ConformalAlgebra2D.wl"}]]

p:=px e[4,1]+py e[4,2]+pz e[4,3]

q:=qx e[4,1]+qy e[4,2]+qz e[4,3]

g:=gx e[4,2,3]+gy e[4,3,1]+gz e[4,1,2]

h:=hx e[4,2,3]+hy e[4,3,1]+hz e[4,1,2]

a:=ax e[1]+ay e[2]+az e[3]+aw e[4]

b:=bx e[1]+by e[2]+bz e[3]+bw e[4]

d:=dgx e[2,3]+dgy e[3,1]+dgz e[1,2]+dpx e[4,1]+dpy e[4,2]+dpz e[4,3]

f:=fgx e[2,3]+fgy e[3,1]+fgz e[1,2]+fpx e[4,1]+fpy e[4,2]+fpz e[4,3]

c:=cx e[4,2,3]+cy e[4,3,1]+cz e[4,1,2]+cw e[3,2,1]

o:=ox e[4,2,3]+oy e[4,3,1]+oz e[4,1,2]+ow e[3,2,1]

Join and Meet

Join of two round points

a∧b//BasisForm

Manipulate[With[{p1=RoundPoint[0,0,1,1.5],p2=RoundPoint[x,0,1,r]},
Show[DrawRoundPoint[p1],DrawRoundPoint[p2],DrawDipole[p1∧p2],DrawCircle[Container[p1∧p2]],PlotRange->{{-2,7},{-4,4}}]],
{{x,4},0.1,5},{{r,1},0,3}]

Join of flat point and round point

p∧a//BasisForm

Join of dipole and round point

d∧a//BasisForm

Manipulate[With[{p1=RoundPoint[0,0,1,1],p2=RoundPoint[4,0,1,3],p3=RoundPoint[2,y,1,-r]},
Show[DrawRoundPoint[p1],DrawRoundPoint[p2],DrawRoundPoint[p3],DrawDipole[p1∧p2],DrawDipole[p2∧p3],DrawDipole[p3∧p1],DrawCircle[p1∧p2∧p3],PlotRange->{{-2,8},{-3,6}}]],
{{y,4},0.1,5},{{r,1},0,3}]

Meet of two lines

g∨h//BasisForm

Meet of two circles

c∨o//BasisForm

Manipulate[Module[{r1=4,r2=1,c1,c2},c1=RoundCircle[r1,-1,0];c2=RoundCircle[r2,x,0];Show[DrawCircle[c1],DrawCircle[c2],DrawDipole[c1∨c2],PlotRange->{{-4,4},{-4,4}}]],{{x,1},-4,4}]

Meet of circle and line

c∨g//BasisForm

Meet of circle and dipole

c∨d//BasisForm

Manipulate[With[{dip=RoundDipole[r,0,y,1,0],cir=RoundCircle[2,0,-1]},
Show[DrawCircle[cir],DrawDipole[dip],DrawRoundPoint[dip∨cir],DrawCircle[Container[dip]],PlotRange->{{-3,3},{-3,3}}]],
{{y,1},-0.9,3},{{r,1},0,3}]

Meet of line and dipole

g∨d//BasisForm

Manipulate[With[{dip=RoundDipole[r,0,y,1,0],cir=FlatLine[0,1,1]},
Show[DrawLine[cir],DrawDipole[dip],DrawRoundPoint[dip∨cir],PlotRange->{{-3,3},{-3,3}}]],
{{y,1},-0.9,3},{{r,1},0,3}]

Meet of circle and flat point

c∨p//BasisForm

Manipulate[With[{dip=FlatPoint[0,y],cir=RoundCircle[r,0,1]},
Show[DrawCircle[cir],DrawFlatPoint[dip],DrawRoundPoint[dip∨cir],PlotRange->{{-3,3},{-3,3}}]],
{{y,2},0.1,5},{{r,1},0,4}]

Expansion

Expand round point onto circle

a∧Antidual[c]//BasisForm

c∨(a∧Antidual[c])//BasisForm

Manipulate[With[{pnt=RoundPoint[0,0,1,1],cir=RoundCircle[r,x,0]},
Show[DrawCircle[cir],DrawRoundPoint[pnt],DrawDipole[pnt∧Antidual[cir]],PlotRange->{{-2,8},{-3,3}}]],
{{x,4},-2,5},{{r,1},0,6}]

Expand round point onto line

a∧Antidual[g]//BasisForm

Manipulate[With[{pnt=RoundPoint[0,0,1,r],cir=FlatLine[-1,0,x]},
Show[DrawLine[cir],DrawRoundPoint[pnt],DrawDipole[pnt∧Antidual[cir]],PlotRange->{{-2,8},{-3,3}}]],
{{x,4},-2,5},{{r,1},0,6}]

Expand dipole onto circle

d∧Antidual[c]//BasisForm

Manipulate[With[{dip=RoundDipole[1,0,0,1,0],cir=RoundCircle[r,x,0]},
Show[DrawCircle[cir],DrawDipole[dip],DrawCircle[dip∧Antidual[cir]],PlotRange->{{-2,8},{-3,3}}]],
{{x,4},-2,5},{{r,1},0,6}]

Expand dipole onto line

d∧Antidual[g]//BasisForm

Manipulate[With[{dip=RoundDipole[1,0,0,1,0],cir=FlatLine[-0.86,0.5,x]},
Show[DrawLine[cir],DrawDipole[dip],DrawCircle[dip∧Antidual[cir]],PlotRange->{{-2,8},{-3,3}}]],
{{x,2},-2,5}]

Expand flat point onto circle

p∧Antidual[c]//BasisForm

Manipulate[With[{dip=e[4,3],cir=RoundCircle[r,x,0]},
Show[DrawCircle[cir],DrawFlatPoint[dip],DrawLine[dip∧Antidual[cir]],PlotRange->{{-2,8},{-3,3}}]],
{{x,4},-2,5},{{r,1},0,6}]

Expand flat point onto line

p∧Antidual[g]//BasisForm

Expand round point onto dipole

a∧Antidual[d]//BasisForm

Manipulate[With[{pnt=RoundPoint[0,0,1,0.5],dip=RoundDipole[r,x,2,1,0]},
Show[DrawDipole[dip],DrawRoundPoint[pnt],DrawCircle[pnt∧Antidual[dip]],PlotRange->{{-2,8},{-3,3}}]],
{{x,2},-2,5},{{r,1},0,6}]

Expand round point onto flat point

a∧Antidual[p]//BasisForm

Manipulate[With[{pnt=RoundPoint[0,0,1,0.5],dip=FlatPoint[x,0]},
Show[DrawFlatPoint[dip],DrawRoundPoint[pnt],DrawCircle[pnt∧Antidual[dip]],PlotRange->{{-2,8},{-3,3}}]],
{{x,4},-2,5}]

License

MIT License

Copyright (c) 2025 Eric Lengyel

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.