Skip to content

as_vec3a for Vec3 #655

@Aceeri

Description

@Aceeri

What problem does this solve or what need does it fill?
A couple of times I've expected a method like Vec3::as_vec3a to exist when I'm flipping between simd/non simd, but it seems you have to use Vec3A::from(vec3);. Seems a little bit counterintuitive to how to convert between all the other types.

Describe the solution you'd like
Add Vec3::as_vec3a() that just does Vec3A::from(vec3)

Describe alternatives you've considered
Using From/Into if there is some reasoning behind this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions