早教吧 育儿知识 作业答案 考试题库 百科 知识分享

as3扇形画法publicfunctiondrawSector(){//this.graphics.clear();varsx=radius;varsy=0;if(beginAngle=0){sx=Math.cos(beginAngle*Math.PI/180)*radius;sy=Math.sin(beginAngle*Math.PI/180)*radius;}this.graphics.lineStyle(1,this.lin

题目详情
as3扇形画法
public function drawSector()
{
//this.graphics.clear();
var sx = radius;
var sy = 0;
if (beginAngle = 0) {
sx = Math.cos(beginAngle * Math.PI/180) * radius;
sy = Math.sin(beginAngle * Math.PI/180) * radius;
}
this.graphics.lineStyle(1,this.lineColor);
this.graphics.beginFill(this.color);
this.graphics.moveTo(this.point.x,this.point.y)
this.graphics.lineTo(this.point.x + sx,this.point.y +sy);
var rad = angle * Math.PI / 180 / angle;
var cos = Math.cos(rad);
var sin = Math.sin(rad);
for (var i=0; i
▼优质解答
答案和解析
靠!,我英语为什么那么差啊!5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
看了 as3扇形画法publicf...的网友还看了以下: