AbstractWormhole2D
Partial, abstract, implementation for the interface Wormhole2D. This implementation considers the particular case of the view as an entity into the sceern-space: the y-axis grows on the bottom side of the screen. This abstract class is independent from the 2D graphical component wrapped.
Parameters
<P>
the position type
Constructors
Link copied to clipboard
constructor(@Nonnull environment: Environment<out Any, P>, @Nonnull view: T, @Nonnull viewTypeToPointAdapter: (T) -> PointAdapter<P>)
Wormhole constructor for any ViewPort.
Properties
Functions
Link copied to clipboard
Converts a point from the view-space to the env-space.
Link copied to clipboard
Converts a point from the env-space to the view-space.
Link copied to clipboard
Gets the Position.
Link copied to clipboard
Gets the view's size.
Link copied to clipboard
Check if a point of the view-space is "visible", i.e.
Link copied to clipboard
Automatically sets the zoom rate in order to make the environment entirely visible on the view.
Link copied to clipboard
Rotates around a point into the view-space.
Link copied to clipboard
Sets the position to the view-point corresponding to
envPoint
.Link copied to clipboard
Rotates the environment around the Position.
Link copied to clipboard
Sets the Position to
viewPoint
.Link copied to clipboard
Zooms on a point into the view-space.