Skip to content

Promote f32 to Vec2#14

Merged
iamseeley merged 1 commit into
membranefrom
thomas/splat
Mar 23, 2026
Merged

Promote f32 to Vec2#14
iamseeley merged 1 commit into
membranefrom
thomas/splat

Conversation

@iamseeley

Copy link
Copy Markdown

Add From<f32> for Vec2 (scalar-to-vector promotion)

Implements From<f32> for Vec2 via Vec2::splat(), matching the existing pattern of From<Vec2b> for
Vec2. This enables .into() conversions from scalar to vector, which is useful when working with fields
like TextFormat::expand_bg generically.

@github-actions

Copy link
Copy Markdown

Preview is being built...

Preview will be available at https://egui-pr-preview.github.io/pr/14-thomas/splat

View snapshot changes at kitdiff

@iamseeley iamseeley merged commit 9e41b0e into membrane Mar 23, 2026
6 of 47 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