This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdafx.h" | |
#include "scdialog.h" | |
#include <vector> | |
using namespace gui; | |
using namespace sciter; | |
// ========================================================================== | |
LRESULT scdialog::on_load_data(LPSCN_LOAD_DATA pnmld) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ====================================================================== | |
// Скалярное произведение двух векторов | |
template<typename D> inline double inner_prod(const D& a, const D& b) | |
{ | |
/* Длина проекции a на b */ | |
return double(a.x) * double(b.x) + double(a.y) * double(b.y); | |
} | |
// Векторное произведение двух векторов | |
// Результат положительный, если <b> слева от <a> |