Above the image containing 4 points that the user can drag, there are frames in the image, I want the algorithm (logic) in which the user draws a rectangle to have a value of rect or NOT.Rect must be a valid SHAPE (trapezoidal triangle, quadrangle). it is best to find that rect is a valid form or not.
Below forms are invalid
, , ( concave convex ). , , :
, 180 , .. . question SO.
, "" . . , , 360 ( ). , . 2 :
v_ {12} = (x2 - x1, y2 - y1) → 1 2
v_ {23} = (x3 - x2, y3 - y2) → 2 3
v_ {12}. v_ {23} = (x3 - x2) (x2 - x1) + (y3 - y2) (y2 - y1)
12 23 , .
Source: https://habr.com/ru/post/1589189/More articles:How do I know when to use support classes? - androidАвтоматическое обновление (Excel-DNA) XLL с открытым Excel - c#PhpStorm: Convert Folder Encoding to Another - encodingremove checkbox attribute in jquery clone - jqueryXPath - get parent text of text nodes with condition - xpathCalling Partially Applied Functions from C # - curryingSet up LinkedIn - javascriptNSSearchField cleanup button does not respond to click - xcodeChange (use an older) version of C ++ in Visual Studio - c ++Авторизация с переменными сеанса в asp net mvc 5 - c#All Articles