You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -212,11 +214,17 @@ private int partitionPoints(List<Point> points, Predicate<Vector2D> splitPredica
212
214
* Set the mass and position of the barycenter of a node, use this only if it's a leaf node. This function assumes all points in the [startIndex, endIndex[ range have the same position
213
215
* (so either the common case of having a single point, or the rarer case of have multiple points on the same position)
214
216
* @param points the list of all the points
215
-
* @param nodeBarycenter the barycenter
216
217
* @param massGetter the function that associates a point to its mass
* Set the mass and position of the barycenter of a node that is not a leaf node (ie it has at least one children node, otherwise it would be a leaf node,
232
-
* in which case, use {@link #setLeafBarycenter(List, Point, ToDoubleFunction)}
241
+
* in which case, use {@link #createLeafBarycenter(List, ToDoubleFunction)}
233
242
* @param nodeList all the nodes
234
243
* @param node the node for which we are calculating the barycenter
235
-
* @param nodeBarycenter the barycenter of the node, the one we are setting the mass and position of
0 commit comments