浏览代码

Merge branch 'kgdev' into 'master'

fix error in arcTo.

See merge request upm-packages/ui-widgets/com.unity.uiwidgets!100
/main
Shenhua Gu 6 年前
当前提交
183a7898
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7
      Runtime/ui/painting/path.cs

7
Runtime/ui/painting/path.cs


while (da < 0.0f) {
da += Mathf.PI * 2;
}
if (da <= 1e-5) {
return new List<float>();
}
}
} else {
if (Mathf.Abs(da) >= Mathf.PI * 2) {

da -= Mathf.PI * 2;
}
if (da >= -1e-5) {
return new List<float>();
}
}
}

}
var points = TessellationGenerator.tessellateBezier(x1, y1, x2, y2, x3, y3, x4, y4, this._tessTol);
D.assert(points.Count > 0);
points[points.Count - 1].flags = flags;
foreach (var point in points) {
this._addPoint(point);

正在加载...
取消
保存