![]() # Objective When working on `leafwing-input-manager` and in my games, I've found these compass directions to be both clear and useful when attempting to describe angles in 2 dimensions. This was directly used when mapping gamepad inputs into 4-way movement as a virtual dpad, and I expect other uses are common in games. ## Solution - Add constants corresponding to the 4 cardinal and 4 semi-cardinal directions. ## Testing - I've validated the quadrants of each of the directions through self-review. --------- Co-authored-by: Alice Cecile <alice.i.cecil@gmail.com> |
||
---|---|---|
.. | ||
bounding | ||
primitives | ||
rects | ||
sampling | ||
affine3.rs | ||
aspect_ratio.rs | ||
common_traits.rs | ||
cubic_splines.rs | ||
direction.rs | ||
float_ord.rs | ||
lib.rs | ||
ray.rs | ||
rotation2d.rs |