ComposedProjector class

This is a Projector implementation that composes a list of projectors, in the order provided.

It will call the project* functions in the order in the array and the unproject* in the reversed order. For a list of projectors p1, p2, ..., pn, this is equivalent of the projector p = pn ∘ ... ∘ p2 ∘ p1.

Inheritance

Constructors

ComposedProjector(List<Projector> _components)

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.
override
scaleVector(Vector2 worldCoordinates) Vector2
Converts a vector representing a delta in the world space to the screen space.
override
toString() String
A string representation of this object.
inherited
unprojectVector(Vector2 screenCoordinates) Vector2
Converts a vector in the screen space to the world space.
override
unscaleVector(Vector2 screenCoordinates) Vector2
Converts a vector representing a delta in the screen space to the world space.
override

Operators

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