Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stack allocate 2d points using tiny_vec. #222

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Jul 13, 2023

  1. spike on tinyvec

    michaelkirk committed Jul 13, 2023
    Configuration menu
    Copy the full SHA
    f0b72a2 View commit details
    Browse the repository at this point in the history
  2. Position as opaque struct

    tiny_vec becomes private implementation detail in case we want to change
    it further in the future.
    
    It's admittedly more verbose with this commit. We could clean it up with
    a pos! macro, or add some helper methods like Value::pt2d([1, 2]).
    michaelkirk committed Jul 13, 2023
    Configuration menu
    Copy the full SHA
    9778880 View commit details
    Browse the repository at this point in the history