cgmath/tests
bors[bot] f69e781b8f
Merge #491
491: Fix Matrix2::look_at, add look_at_stable r=kvark a=blargg

## Changes

1. Fixes `Matrix2::look_at`
2. Adds tests for `look_at`
3. Adds a new function, `look_at_stable`

## Notes
I added a new function for 2d look at rotation. `look_at` is a bit weird in practice for 2d. For example, if you are making a basis matrix to orient a 2d character to look at a point, `look_at` will flip the character as they rotate past `up` or `-up` vectors. This is the best match for what look_at is supposed to do, I think.

`look_at_stable` will not flip based on orientation, you just pass in which way to flip. This is a bit easier to use to rotate 2d characters.

`look_at_stable` could have a better name. I think we can also consider removing the flip param, and just let the user flip the matrix with a transform later.

Co-authored-by: blargg <tomjankauski@gmail.com>
2019-09-03 22:13:25 +00:00
..
angle.rs tests: add tests for Angle::normalize 2019-01-16 16:02:37 -05:00
matrix.rs Merge #491 2019-09-03 22:13:25 +00:00
point.rs bump rand -> 0.7, fix unused macro warnings in tests 2019-08-11 16:59:47 -07:00
projection.rs Run rustfmt on most files 2018-01-03 13:16:40 +11:00
quaternion.rs bump rand -> 0.7, fix unused macro warnings in tests 2019-08-11 16:59:47 -07:00
rotation.rs Moved angle types to tuple structs 2016-07-31 20:40:31 -07:00
swizzle.rs Guard the swizzle test by the "swizzle" feature flag. 2017-10-01 13:36:01 -07:00
transform.rs bump rand -> 0.7, fix unused macro warnings in tests 2019-08-11 16:59:47 -07:00
vector.rs bump rand -> 0.7, fix unused macro warnings in tests 2019-08-11 16:59:47 -07:00
vector4f32.rs bump rand -> 0.7, fix unused macro warnings in tests 2019-08-11 16:59:47 -07:00