using System;
using System.Drawing;
namespace InvoicingTool
{
public static class Common
{
///
/// 根据半径、角度求圆上坐标
///
/// 圆心
/// 半径
/// 角度
/// 坐标
public static PointF GetDotLocationByAngle(PointF center, float radius, int angle)
{
var x = (float)(center.X + radius * Math.Cos(angle * Math.PI / 180));
var y = (float)(center.Y + radius * Math.Sin(angle * Math.PI / 180));
return new PointF(x, y);
}
}
}