clearPosition method

dynamic clearPosition()

Clear all vertexes' position value.

将所有点的位置清空,重新计算位置

Implementation

clearPosition() {
  for (var element in graph.vertexes) {
    element.position = Vector2.zero();
  }
}