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(
相關文章
相關標籤/搜索