homog2d library
Functions
tryme.cpp File Reference
#include "homog2d.hpp"
Include dependency graph for tryme.cpp:

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )
7 {
8  Line2d l1( Point2d(10,10) ); // a line passing through (0,0) and (10,10)
9  Line2d l2( Point2d(0,10), Point2d(10,0) ); // a line passing through (0,10) and (10,0)
10  auto pt = l1 * l2; // intersection point (5,5)
11  Homogr H(2,3); // a translation matrix
12  std::cout << H * pt; // prints [7,8]
13 }
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