src/ccstruct/blobs.cpp
void TESSLINE::MinMaxCrossProduct(const TPOINT vec, int *min_xp, int *max_xp) const {
  *min_xp = INT32_MAX;
  *max_xp = INT32_MIN;
  EDGEPT *this_edge = loop;
  do {
    if (!this_edge->IsHidden() || !this_edge->prev->IsHidden()) {
      int product = this_edge->pos.cross(vec);
      UpdateRange(product, min_xp, max_xp);
    }
    this_edge = this_edge->next;
  } while (this_edge != loop);
}
// Computes the min and max cross product of the outline points with the
// given vec and returns the results in min_xp and max_xp. Geometrically
// this is the left and right edge of the outline perpendicular to the
// given direction, but to get the distance units correct, you would
// have to divide by the modulus of vec.
Computes the min and max cross product of the outline points with the
given vec and returns the results in min_xp and max_xp. Geometrically
this is the left and right edge of the outline perpendicular to the
given direction, but to get the distance units correct, you would
have to divide by the modulus of vec.
Computes the min and max cross product of the outline points with the given vec and returns the results in min_xp and max_xp . Geometrically this is the left and right edge of the outline perpendicular to the given direction but to get the distance units correct you would have to divide by the modulus of vec .
void TESSLINE::MinMaxCrossProduct(const TPOINT vec, int *min_xp, int *max_xp) const {
  *min_xp = INT32_MAX;
  *max_xp = INT32_MIN;
  EDGEPT *this_edge = loop;
  do {
    if (!this_edge->IsHidden() || !this_edge->prev->IsHidden()) {
      int product = this_edge->pos.cross(vec);
      UpdateRange(product, min_xp, max_xp);
    }
    this_edge = this_edge->next;
  } while (this_edge != loop);
}
void TESSLINE :: MinMaxCrossProduct ( const TPOINT vec , int * min_xp , int * max_xp ) const { * min_xp = INT32_MAX ; * max_xp = INT32_MIN ; EDGEPT * this_edge = loop ; do { if ( ! this_edge -> IsHidden ( ) || ! this_edge -> prev -> IsHidden ( ) ) { int product = this_edge -> pos . cross ( vec ) ; UpdateRange ( product , min_xp , max_xp ) ; } this_edge = this_edge -> next ; } while ( this_edge != loop ) ; }
Computes the min and max cross product of the outline points with the
given vec and returns the results in min_xp and max_xp.
Computes the min and max cross product of the outline points with the given vec and returns the results in min_xp and max_xp .