Skip to content

Reduce constructors using default parameters#389

Merged
RobLoach merged 1 commit into
masterfrom
reduce-constructors
Apr 24, 2026
Merged

Reduce constructors using default parameters#389
RobLoach merged 1 commit into
masterfrom
reduce-constructors

Conversation

@RobLoach
Copy link
Copy Markdown
Owner

Merges redundant constructors into single constructors with default parameters across Vector2, Vector3, Vector4, Rectangle, Camera2D, and Camera3D.

  • Vector2: 3 float constructors → 1 (x=0, y=0)
  • Vector3: 4 float constructors → 1 (x=0, y=0, z=0)
  • Vector4: 5 float constructors → 1 (x=0, y=0, z=0, w=0)
  • Rectangle: 5 float constructors → 1 (x=0, y=0, width=0, height=0)
  • Camera2D: default + parameterized → 1 (offset={}, target={}, rotation=0, zoom=1)
  • Camera3D: default + parameterized → 1 (position={0,0,0} + existing defaults)

@RobLoach RobLoach merged commit 9cb05d4 into master Apr 24, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant