homog2d library
Functions
single_file.cpp File Reference

used to check build of single file with MS compiler, see msvc.yml More...

#include "../../homog2d.hpp"
Include dependency graph for single_file.cpp:

Functions

int main ()
 

Detailed Description

used to check build of single file with MS compiler, see msvc.yml

Function Documentation

◆ main()

int main ( )
11 {
12  Line2d l1( Point2d(10,10) ); // a line passing through (0,0) and (10,10)
13  Line2d l2( Point2d(0,10), Point2d(10,0) ); // a line passing through (0,10) and (10,0)
14  auto pt = l1 * l2; // intersection point (5,5)
15  Homogr H(2,3); // a translation matrix
16  std::cout << H * pt << '\n'; // prints [7,8]
17 }
A 2D homography, defining a planar transformation.
Definition: homog2d.hpp:369
Point2d_< HOMOG2D_INUMTYPE > Point2d
Default point type, uses double as numerical type.
Definition: homog2d.hpp:12379
Point2d pt
Definition: homog2d_test.cpp:4034
Base class, will be instanciated as Point2d_ or Line2d_.
Definition: homog2d.hpp:365