icexfire
V2EX  ›  问与答

svg 如何方便的绘制特定角度的多边形? 难道要先把各个顶点的位置自己计算出来?

  •  
  •   icexfire · Aug 9, 2012 · 3665 views
    This topic created in 5045 days ago, the information mentioned may be changed or developed.
    比如用svg画一个三角形,一个角23度,一个34度。。这样,有方便的做法么?可以让一条线与之前画的另一条线成某一特定角度么?(毕竟求顶点坐标的话,坐标很多都不是整数。)
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5674 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 01:29 · PVG 09:29 · LAX 18:29 · JFK 21:29
    ♥ Do have faith in what you're doing.