Given point $A$ and point $B$, on the one hand, I would like to get a point that is an affine combination of $A$ and $B$, for example $1.2A-0.2B$, on the other hand, I would like to get the coordinate of the intersection point of $AB$'s extended line and $CD$.
The MWE is as follows.
\documentclass[notitlepage, 12pt]{amsart}
\usepackage{amsthm, amsmath, amsaddr, amssymb, graphicx, dsfont,}
\usepackage[dvipsnames]{xcolor}
\renewcommand{\baselinestretch}{1.2}
\usepackage{tikz}
\usetikzlibrary{calc,intersections,through,backgrounds}
\usepackage{pgfplots}
\usepackage[capposition=bottom]{floatrow}
\usepackage{float}
\pgfplotsset{compat=1.18}
\begin{document}
\thispagestyle{empty}
\begin{figure}[H]
\centering
\begin{tikzpicture}[xscale=18,yscale=18]
\coordinate (A) at (0.2,0.3);
\coordinate (B) at (0.3,0.2);
\coordinate (C) at (0.4,0.2);
\coordinate (D) at (0.4,0.5);
\end{tikzpicture}
\caption{}
\end{figure}
\end{document}



calc. – cfr Mar 06 '24 at 03:24intersectionslibrary. – Sandy G Mar 06 '24 at 04:22tkz-euclide- https://tex.stackexchange.com/a/666573/197451 – js bibra Mar 06 '24 at 04:37