actionscript 3 - how to add a needle or arrow from the center of pie chart using action script -


There is a pie chart from the center that I need to pull or needle like a needle

Something like this should be done:

  Var radian: number = Math PI; Var radius: number = 400; Var xpos: Numbers = Math (Radius) * radius; Var ypos: number = mathematics (radians) * radius; Var line: size = new size (); Line.x = stage. Staveway * 0.5; Line.y = Step StageHite * 0.5; AddChild (line); Var g: graphics = line.graphics; G.clear (); G. Line style (2, 0x000000); G. Linto (expose, UPS);  

If the degree is required to be converted to radians or radians then you can use it:

  Degree to radians: (degree * Math. PI) / 180 degrees radius: (radius * 180) / monastery. PI  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -