Camera2D class

Camera2D, defines position/orientation in 2d space.

Constructors

Camera2D({Vector2? offset, Vector2? target, double zoom = 1, double rotation = 0})
Camera2D, defines position/orientation in 2d space.

Properties

hashCode int
The hash code for this object.
no setterinherited
offset Vector2
Camera offset (displacement from target).
getter/setter pair
pointer Pointer<Camera2D>?
Native pointer, used internally.
final
ref ↔ Camera2D
Native reference.
latefinalinherited
rotation double
Camera rotation in degrees.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
target Vector2
Camera target (rotation and zoom origin).
getter/setter pair
zoom double
Camera zoom (scaling), should be 1.0f by default.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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