MCPcopy Create free account
hub / github.com/CoderOpen/waimai / isInExactPieChartArea

Function isInExactPieChartArea

front/components/u-charts/u-charts.js:783–785  ·  view source on GitHub ↗
(currentPoints, center, radius)

Source from the content-addressed store, hash-verified

781}
782
783function isInExactPieChartArea(currentPoints, center, radius) {
784 return Math.pow(currentPoints.x - center.x, 2) + Math.pow(currentPoints.y - center.y, 2) <= Math.pow(radius, 2);
785}
786
787function splitPoints(points) {
788 var newPoints = [];

Callers 2

findPieChartCurrentIndexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected