Skip to content

any_orthonormal_pair and cross are not handedness-agnostic or documented #659

@atlv24

Description

@atlv24

Describe the bug

Glam readme says it is handedness-agnostic, but Vec3::any_orthonormal_pair and Vec3::cross do not specify which handedness is produced and assume a handedness. (They are both right-handed)

To Reproduce

Read the docs on the methods

Expected behavior

Handedness is specified in either the docs or the function name as many functions in Mat3 do (_rh vs _lh)

System information (please complete the following information):

  • Any

Additional context

I imagine cross_rh cross_lh would be a little bit undesirable. But any_orthonormal_pair_rh vs any_orthonormal_pair_lh could be manageable. How do we communicate this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions