Lines Matching refs:SwFixed
34 static float TO_RADIAN(SwFixed angle) in TO_RADIAN()
44 SwFixed mathMean(SwFixed angle1, SwFixed angle2) in mathMean()
50 int mathCubicAngle(const SwPoint* base, SwFixed& angleIn, SwFixed& angleMid, SwFixed& angleOut) in mathCubicAngle()
160 void mathRotate(SwPoint& pt, SwFixed angle) in mathRotate()
175 SwFixed mathTan(SwFixed angle) in mathTan()
178 return SwFixed(tanf(TO_RADIAN(angle)) * 65536.0f); in mathTan()
182 SwFixed mathAtan(const SwPoint& pt) in mathAtan()
185 return SwFixed(tvg::atan2(TO_FLOAT(pt.y), TO_FLOAT(pt.x)) * (180.0f / MATH_PI) * 65536.0f); in mathAtan()
189 SwFixed mathSin(SwFixed angle) in mathSin()
196 SwFixed mathCos(SwFixed angle) in mathCos()
198 return SwFixed(cosf(TO_RADIAN(angle)) * 65536.0f); in mathCos()
202 SwFixed mathLength(const SwPoint& pt) in mathLength()
218 return static_cast<SwFixed>((v.x > v.y) ? (v.x + v.y * 0.375f) : (v.y + v.x * 0.375f)); in mathLength()
257 SwFixed mathDiff(SwFixed angle1, SwFixed angle2) in mathDiff()