Abstract Wormhole2D
constructor(@Nonnull environment: Environment<out Any, P>, @Nonnull view: T, @Nonnull viewTypeToPointAdapter: (T) -> PointAdapter<P>)(source)
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
the Environment
view
the ViewPort of the UI used for implementing the wormhole.
view Type To Point Adapter
a Function used to create the initial position of the wormhole.