Projection class abstract

Common interface for all camera projections.

Concrete implementations produce a world → clip matrix for the given screen size, plus helpers to compute the visible world bounds. Camera2D composes this with the entity's Transform2D to produce a view-projection matrix each frame.

Built-in implementations:

Implementers

Constructors

Projection()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

matrix(RenderSize screenSize) → Matrix4
Get the projection matrix for the given screen size.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
visibleHeight(RenderSize screenSize) → double
The visible height in world units for the given screen size.
visibleWidth(RenderSize screenSize) → double
The visible width in world units for the given screen size.
worldToScreenPoint(Vector2 world, RenderSize screenSize) → Vector2
Convert a world-space point to screen-space pixels in the screen rect described by screenSize.

Operators

operator ==(Object other) → bool
The equality operator.
inherited