mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-24 18:00:26 +00:00
MarkLine优化
This commit is contained in:
@@ -37,8 +37,7 @@ namespace XUGL
|
||||
float height, float offset, float dent, Color32 color)
|
||||
{
|
||||
var dir = (arrowPoint - startPoint).normalized;
|
||||
|
||||
var sharpPos = arrowPoint + (offset + height / 2) * dir;
|
||||
var sharpPos = arrowPoint + (offset + height / 4) * dir;
|
||||
var middle = sharpPos + (dent - height) * dir;
|
||||
var diff = Vector3.Cross(dir, Vector3.forward).normalized * width / 2;
|
||||
var left = sharpPos - height * dir + diff;
|
||||
|
||||
Reference in New Issue
Block a user