增加Heatmap热力图

This commit is contained in:
monitor1394
2019-10-14 09:26:19 +08:00
parent d7933eb06e
commit 73c3298dca
3 changed files with 107 additions and 1 deletions

View File

@@ -358,7 +358,7 @@ namespace XCharts
{
var radius = triangleLen / 2;
var pos1 = centerPos + Vector3.left * itemHeight / 2;
var cpos = new Vector3(pos1.x + rangeMinHeight - radius, pos1.y + itemWidth / 2 + radius);
var cpos = new Vector3(pos1.x + rangeMinHeight, pos1.y + itemWidth / 2 + radius);
return local.x >= cpos.x - radius && local.x <= cpos.x + radius &&
local.y >= cpos.y - radius && local.y <= cpos.y + radius;
}