The reference in which worldOrigin is defined. The 'world units' of scaleX and scaleY also refer to the units of this reference.
The rotation of the camera, in degrees. Positive is counter-clockwise in the view. 0 = no rotation.
The scale, in pixels per world unit, along the X (horizontal) direction of the camera's viewport.
The scale, in pixels per world unit, along the Y (vertical) direction of the camera's viewport.
The pixel point at which worldOrigin is in the viewport.
The 2D world point at viewOrigin.
A Look2D represents the position of an OrthographicCamera in a projected (grid) or cartesian reference (aka a '2D' reference). It allows you to reason about the map's camera in a 2D space, rather than a 3D space. It also allows you to easily perform zooming and rotation around an arbitrary view point.
A Look2D is defined by the following properties:
Rotation and scaling (zooming) happen with viewOrigin / worldOrigin as the center.
Imagine pushing a pin through the pixel at
viewOrigin
, and sticking it toworldOrigin
on the 2D map. Moving the pin pans the map. Rotation (rotation
) and zooming (scaleX
andscaleY
) happen around the pin.Note that a Look2D can not be used with a geocentric (3D) reference.