src/classify/intfeaturespace.cpp
INT_FEATURE_STRUCT IntFeatureSpace::PositionFromBuckets(int x, int y, int theta) const {
  INT_FEATURE_STRUCT pos((x * kIntFeatureExtent + kIntFeatureExtent / 2) / x_buckets_,
                         (y * kIntFeatureExtent + kIntFeatureExtent / 2) / y_buckets_,
                         DivRounded(theta * kIntFeatureExtent, theta_buckets_));
  return pos;
}
// Returns an INT_FEATURE_STRUCT corresponding to the given bucket coords.
Returns an INT_FEATURE_STRUCT corresponding to the given bucket coords.
Returns an INT_FEATURE_STRUCT corresponding to the given bucket coords .
INT_FEATURE_STRUCT IntFeatureSpace::PositionFromBuckets(int x, int y, int theta) const {
  INT_FEATURE_STRUCT pos((x * kIntFeatureExtent + kIntFeatureExtent / 2) / x_buckets_,
                         (y * kIntFeatureExtent + kIntFeatureExtent / 2) / y_buckets_,
                         DivRounded(theta * kIntFeatureExtent, theta_buckets_));
  return pos;
}
INT_FEATURE_STRUCT IntFeatureSpace :: PositionFromBuckets ( int x , int y , int theta ) const { INT_FEATURE_STRUCT pos ( ( x * kIntFeatureExtent + kIntFeatureExtent / 2 ) / x_buckets_ , ( y * kIntFeatureExtent + kIntFeatureExtent / 2 ) / y_buckets_ , DivRounded ( theta * kIntFeatureExtent , theta_buckets_ ) ) ; return pos ; }
Returns an INT_FEATURE_STRUCT corresponding to the given bucket coords.
Returns an INT_FEATURE_STRUCT corresponding to the given bucket coords .