How can I get the numeric points {x,y} where the lines below intersect, please?
cvf = {{0.`,
0.`}, {-2.5866650924004158`, -1.2251749213103618`}, \
{2.5866650924004153`, 1.2251749213103618`}, {-0.46459988053166823`,
3.255060440892003`}, {0.46459988053166823`, -3.255060440892003`}, \
{3.0512649729320835`, -2.0298855195816414`}, {-3.051264972932084`,
2.0298855195816414`}};
prePLin[col_, pnt_] := {col, Dashed,
Line[{cvf[[pnt]]/2 + RotationMatrix[-90 Degree] . cvf[[pnt]]/2,
cvf[[pnt]]/2 + RotationMatrix[90 Degree] . cvf[[pnt]]/2}],
Line[{cvf[[pnt + 1]]/2 +
RotationMatrix[-90 Degree] . cvf[[pnt + 1]]/2,
cvf[[pnt + 1]]/2 + RotationMatrix[90 Degree] . cvf[[pnt + 1]]/2}]}
Graphics[{prePLin[Green, 2], prePLin[Blue, 4], prePLin[Red, 6]}]
I tried this answer
LineIntersectionPoint[{a_, b_}, {c_, d_}] :=
(Det[{a, b}] (c - d) - Det[{c, d}] (a - b))/Det[{a - b, c - d}]
Tlins[pnt_] := {cvf[[pnt]]/2 +
RotationMatrix[-90 Degree] . cvf[[pnt]]/2,
cvf[[pnt]]/2 + RotationMatrix[90 Degree] . cvf[[pnt]]/2}
p1 = Table[Tlins[j], {j, {2, 3, 4}}];
p2 = Table[Tlins[j], {j, {5, 6, 7}}];
Graphics[{Line /@ {p1, p2}, Red, PointSize@.05,
Point /@ MapThread[LineIntersectionPoint, {p1, p2}]}, Frame -> True]
but it escapes three points?



intersections = Graphics`Mesh`FindIntersections@ Graphics[{prePLin[Green, 2], prePLin[Blue, 4], prePLin[Red, 6]}]? – kglr Mar 24 '22 at 09:08