AbstractWormhole2D

constructor(environment: Environment<out Any, P>, view: T, viewTypeToPointAdapter: (T) -> PointAdapter<P>)

Wormhole constructor for any ViewPort. Initializes a new instance directly setting the size of both view and environment, and the offset too.

Parameters

<T>

the type of the viewType

environment
view

the ViewPort of the UI used for implementing the wormhole.

viewTypeToPointAdapter

a Function used to create the initial position of the wormhole.