OrthographicProjection constructor
OrthographicProjection({
- OrthographicSize size = const OrthographicSize.height(10.0),
- double zoom = 1.0,
- Vector2? offset,
- double near = 0.0,
- double far = 1000.0,
Creates an OrthographicProjection showing size world units, divided
by zoom and shifted by offset, between near and far.
Implementation
OrthographicProjection({
this.size = const OrthographicSize.height(10.0),
this.zoom = 1.0,
Vector2? offset,
this.near = 0.0,
this.far = 1000.0,
}) : offset = offset ?? Vector2.zero();