copy

fun copy(viewport: Viewport): Viewport

Sets this viewport to the origin and dimensions of a specified viewport.

Return

this viewport with its origin and dimensions set to that of the specified viewport

Parameters

viewport

the viewport specifying the new values