insert

fun insert(point: Vector2, owner: Any? = null)(source)

Inserts a point into the grid, associating it with an owner if provided. The method calculates the grid cell corresponding to the provided point and inserts the point into that cell. If the cell does not exist, it is created.

Parameters

point

The point to insert, represented as a Vector2 object.

owner

An optional object to associate with the point. Defaults to null if no owner is specified.