@SuppressWarnings("unused") public float snapToNotches(float value){
  if (this.mNotchesCount == 0)   return value;
  float deltaAngle=this.mPathLength / this.mNotchesCount;
  return Math.round(value / deltaAngle) * deltaAngle;
}

@ SuppressWarnings ( "unused" ) public float snapToNotches ( float value ) { if ( this . mNotchesCount == 0 ) return value ; float deltaAngle = this . mPathLength / this . mNotchesCount ; return Math . round ( value / deltaAngle ) * deltaAngle ; }
round the value near the closed notch .
