Lines Matching refs:pt
160 void mathRotate(SwPoint& pt, SwFixed angle) in mathRotate() argument
162 if (angle == 0 || pt.zero()) return; in mathRotate()
164 Point v = pt.toPoint(); in mathRotate()
170 pt.x = SwCoord(nearbyint((v.x * cosv - v.y * sinv) * 64.0f)); in mathRotate()
171 pt.y = SwCoord(nearbyint((v.x * sinv + v.y * cosv) * 64.0f)); in mathRotate()
182 SwFixed mathAtan(const SwPoint& pt) in mathAtan() argument
184 if (pt.zero()) return 0; in mathAtan()
185 return SwFixed(tvg::atan2(TO_FLOAT(pt.y), TO_FLOAT(pt.x)) * (180.0f / MATH_PI) * 65536.0f); in mathAtan()
202 SwFixed mathLength(const SwPoint& pt) in mathLength() argument
204 if (pt.zero()) return 0; in mathLength()
207 if (pt.x == 0) return abs(pt.y); in mathLength()
208 if (pt.y == 0) return abs(pt.x); in mathLength()
210 auto v = pt.toPoint(); in mathLength()
305 auto pt = outline->pts.begin(); in mathUpdateOutlineBBox() local
307 auto xMin = pt->x; in mathUpdateOutlineBBox()
308 auto xMax = pt->x; in mathUpdateOutlineBBox()
309 auto yMin = pt->y; in mathUpdateOutlineBBox()
310 auto yMax = pt->y; in mathUpdateOutlineBBox()
312 for (++pt; pt < outline->pts.end(); ++pt) { in mathUpdateOutlineBBox()
313 if (xMin > pt->x) xMin = pt->x; in mathUpdateOutlineBBox()
314 if (xMax < pt->x) xMax = pt->x; in mathUpdateOutlineBBox()
315 if (yMin > pt->y) yMin = pt->y; in mathUpdateOutlineBBox()
316 if (yMax < pt->y) yMax = pt->y; in mathUpdateOutlineBBox()