Commit b5ff5120 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov

git-svn-id:...

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@55194 954022d7-b5bf-4e40-9824-e11837661b57
parent 6722e4b8
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4 // Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com) // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
// //
...@@ -167,8 +167,8 @@ namespace agg ...@@ -167,8 +167,8 @@ namespace agg
private: private:
inline agg::point_d project(const double& x, const double& y) inline agg::point_d project(const double& x, const double& y)
{ {
// (x, y) , (cos, sin) // проекция точки (x, y) на прямую, с направляющим вектором (cos, sin)
// x*m_cos + y*m_sin + c = 0; // перпендикулярная прямая x*m_cos + y*m_sin + c = 0;
double c = -(x * m_cos + y * m_sin); double c = -(x * m_cos + y * m_sin);
point_d ret; point_d ret;
ret.x = -c * m_cos; ret.x = -c * m_cos;
......
#ifndef AGG_SPAN_HATCH_INCLUDED #ifndef AGG_SPAN_HATCH_INCLUDED
#define AGG_SPAN_HATCH_INCLUDED #define AGG_SPAN_HATCH_INCLUDED
#include <stdlib.h> #include <stdlib.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment