Skip to content

Allow using Vector2 in boolean context#254

Merged
dbnicholson merged 1 commit intomainfrom
allow-casting-vector2-to-bool
Oct 10, 2024
Merged

Allow using Vector2 in boolean context#254
dbnicholson merged 1 commit intomainfrom
allow-casting-vector2-to-bool

Conversation

@wjt
Copy link
Copy Markdown
Member

@wjt wjt commented Oct 10, 2024

A vector is truthy if either component is non-zero, and falsey if both components are zero.

A vector is truthy if either component is non-zero, and falsey if both
components are zero.
@dbnicholson dbnicholson merged commit e6940e5 into main Oct 10, 2024
@dbnicholson dbnicholson deleted the allow-casting-vector2-to-bool branch October 10, 2024 07:57
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.

2 participants