<code class="hljs cs has-numbering" style="display: block; padding: 0px; color: inherit; box-sizing: border-box; font-family: 'Source Code Pro', monospace;font-size:undefined; white-space: pre; border-radius: 0px; word-wrap: normal; background: transparent;"><span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">var</span> degrees = <span class="hljs-number" style="color: rgb(0, 102, 102); box-sizing: border-box;">60</span>
<span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">var</span> Radians = cc.degreesToRadians(degrees)
<span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">var</span> point = cc.pForAngle(Radians)</code><ul class="pre-numbering" style="box-sizing: border-box; position: absolute; width: 50px; top: 0px; left: 0px; margin: 0px; padding: 6px 0px 40px; border-right-width: 1px; border-right-style: solid; border-right-color: rgb(221, 221, 221); list-style: none; text-align: right; background-color: rgb(238, 238, 238);"><li style="box-sizing: border-box; padding: 0px 5px;">1</li><li style="box-sizing: border-box; padding: 0px 5px;">2</li><li style="box-sizing: border-box; padding: 0px 5px;">3</li></ul>
degrees : 需要的角度
point : 最终计算出来的坐标(计算出的坐标值非常小,只是指向角度的方向)
可以通过乘以一个较大数值观察结果