正六形形顶点坐标
本帖最后由 作者 于 2008-8-30 13:51:54 编辑 <br /><br /> <p></p><p> s = 10<br/> Hexagon(0) = Array(s / 2 * Tan(30 * 3.1415926 / 180), s / 2)<br/> Hexagon(1) = Array(-s / 2 * Tan(30 * 3.1415926 / 180), s / 2)<br/> Hexagon(2) = Array(-s * Tan(30 * 3.1415926 / 180), pp(1) = 0)<br/> Hexagon(3) = Array(-s / 2 * Tan(30 * 3.1415926 / 180), -s / 2)<br/> Hexagon(4) = Array(s / 2 * Tan(30 * 3.1415926 / 180), -s / 2)<br/> Hexagon(5) = Array(s * Tan(30 * 3.1415926 / 180), pp(1) = 0)<br/> Hexagon(6) = Array(s / 2 * Tan(30 * 3.1415926 / 180), s / 2)<br/> <br/> For ii = 0 To UBound(Hexagon) - 1<br/> pp(0) = Hexagon(ii)(0): pp(1) = Hexagon(ii)(1)<br/> ppp(0) = Hexagon(ii + 1)(0): ppp(1) = Hexagon(ii + 1)(1)<br/> Set objLine = ThisDrawing.ModelSpace.AddLine(pp, ppp)<br/> Next ii<br/></p>
页:
[1]