Projector class abstract

A simple interface to mark a class that can perform projection operations from one 2D euclidian coordinate space to another.

This can be a Viewport, a Camera or anything else that exposes such operations to the user.

Implementers

Constructors

Projector()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
projectVector(Vector2 worldCoordinates) → Vector2
Converts a vector in the world space to the screen space.
scaleVector(Vector2 worldCoordinates) → Vector2
Converts a vector representing a delta in the world space to the screen space.
toString() → String
A string representation of this object.
inherited
unprojectVector(Vector2 screenCoordinates) → Vector2
Converts a vector in the screen space to the world space.
unscaleVector(Vector2 screenCoordinates) → Vector2
Converts a vector representing a delta in the screen space to the world space.

Operators

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

Static Methods

compose(List<Projector> projectors) → Projector
Creates a ComposedProjector that will apply the provided projectors in order.