C++画圆算法Algorithm DrawCircle

原算法引用地址 http://slabode.exofire.net/circle_draw.shtml 这里是用点来分割画出圆, num_segments 是点的个数 这里theta =360/num_segments x y,分别代表新的点位的坐标 y += ty * tangetial_factor; 这步就是 求BC 因为AB长度为r r*tan( theta) void DrawArc(
相关文章
相关标签/搜索