Description
Description-Separate-1When you input point data randomly, Centroid VI returns invalid value such as NaN.
For example:
X: -1 -1 1 1
Y: -1 1 -1 1
-> (NaN, NaN)
You need to order the points not to cross the diagram such as:
X: -1 -1 1 1
Y: -1 1 1 -1
->(0, 0)
To establish this, there may be many ways. I would like to show one example how to order the points.
I searched the left edge of the points and calculate angles between vectors and order the points by the angles.
Description-Separate-2Related Links
Related-Separate-1Related-Separate-2