template<class ArrayT>
Definition at line 38 of file InOutCircle.h. References Impala::Core::Array::Trait::InOutCircle< ArrayT >::mCenterX, Impala::Core::Array::Trait::InOutCircle< ArrayT >::mCenterY, Impala::Core::Array::Trait::InOutCircle< ArrayT >::mCircleValue, Impala::Core::Array::Trait::InOutCircle< ArrayT >::mOutsideValue, Impala::Core::Array::Trait::InOutCircle< ArrayT >::mRadiusSquared, and Impala::Core::Array::Trait::InOutCircle< ArrayT >::mRes. 00039 { 00040 int d = (mCenterX - x) * (mCenterX - x) + (mCenterY - y) * (mCenterY - y); 00041 if(d <= mRadiusSquared) { 00042 mRes = mCircleValue; 00043 } else { 00044 mRes = mOutsideValue; 00045 } 00046 return mRes; // without mRes compiler warns ??? 00047 }
|