Skip to content

Implement more num-traits (e.g. checked arithmetic) #496

@Patiga

Description

@Patiga

The num-traits crate has many math traits which are not yet implemented in this crate for points and vectors, such as

  • CheckedAdd: Add with overflow check (also all other checked operations)
  • Zero and One: Additive and multiplicative identity

I am personally missing the checked operations the most, for situations where I really don't want overflows to happen and want to propagate the error with ?.

Are those methods that would be in the scope of this crate?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions