解答: 修改 PolygonGeometry() 的程式:

1
2
var x = Math.cos( angle ) + location.x; 
var y = Math.sin( angle ) + location.y;