scale_x,
doublescale_y)
70 doubled_x = res.
X() / scale_x;
71 doubled_y = res.
Y() / scale_y;
72 returnd_x * d_x + d_y * d_y;
90 double l= elem.GetLength();
117 doubles = L_x * L_x + L_y * L_y;
118 doublek = -(L_x * v_x + L_y * v_y) / s;
120norm.
X() = k * L_x + v_x;
121norm.
Y() = k * L_y + v_y;
128 doublescale_x,
doublescale_y)
153v_L.
m_From= (min_i & 0x1) ?
a.m_From :
a.m_To;
154v_L.
m_To= (min_i & 0x2) ?
b.m_From :
b.m_To;
159 doubleh_1 = norm.
X() / scale_x + norm.
Y() / scale_y;
162 doubleh_2 = norm.
X() / scale_x + norm.
Y() / scale_y;
182vector<CHitElemGlyph*> gl_acc;
185 for(
size_t i= 0;
i< glyphs.size();
i++ ) {
188vector<CHitElemGlyph>& elems = gl.
GetElems();
193gl_acc.push_back(&gl_a);
196 for(
size_te_i = 1; e_i < elems.size(); e_i++ ) {
203 if(gl_acc.size() > 1) {
212gl_acc.push_back(&gl_b);
215 if(gl_acc.size() > 1) {
bool x_CanCombine(const TVector &a, const TVector &b, TVector &res, double scale_x, double scale_y)
TClusterVector m_Clusters
void Build(vector< CHitGlyph * > &glyphs, double scale_x, double scale_y)
CHitElemGlyph is a simple graphical object representing a Hit Element.
const IHitElement & GetHitElem() const
CHitGlyph is a simple graphical object representing a Hit as a set of corresponding Hit Elements.
TElemGlyphCont & GetElems()
virtual TSignedSeqPos GetQueryStart() const =0
virtual objects::ENa_strand GetSubjectStrand() const =0
virtual objects::ENa_strand GetQueryStrand() const =0
virtual TSignedSeqPos GetSubjectStart() const =0
void swap(NCBI_NS_NCBI::pair_base_member< T1, T2 > &pair1, NCBI_NS_NCBI::pair_base_member< T1, T2 > &pair2)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
void Start(void)
Start the timer.
void GetVector(const CHitElemGlyph &glyph, TVector &v)
TVect GetNorm(const TVector &L, const TVector &v)
double PixDistanceSquare(const TVect &a, const TVect &b, double scale_x, double scale_y)
double CalcDistanceSquare(const TVector &a, const TVector &b, double scale_x, double scale_y)
static SLJIT_INLINE sljit_ins l(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4