Lines Matching refs:v
34 double snapToNearestMultiple(double v, const double fStep) in snapToNearestMultiple() argument
44 const double fChange(fHalfStep - fmod(v + fHalfStep, fStep)); in snapToNearestMultiple()
46 if(basegfx::fTools::equal(fabs(v), fabs(fChange))) in snapToNearestMultiple()
52 return v + fChange; in snapToNearestMultiple()
57 double snapToZeroRange(double v, double fWidth) in snapToZeroRange() argument
66 if(v < 0.0 || v > fWidth) in snapToZeroRange()
68 double fRetval(fmod(v, fWidth)); in snapToZeroRange()
79 return v; in snapToZeroRange()
84 double snapToRange(double v, double fLow, double fHigh) in snapToRange() argument
99 if(v < fLow || v > fHigh) in snapToRange()
101 return snapToZeroRange(v - fLow, fHigh - fLow) + fLow; in snapToRange()
105 return v; in snapToRange()