Blender Git Loki

Git Commits -> Revision 28b9dfe

February 1, 2018, 07:38 (GMT)
Move int <-> float 2d vector funcs from GP code to Math Lib

We now have the following two new functions:
* copy_v2fl_v2i(float r[2], const int a[2]) <-- Copies 2D int vector to float vector
* round_v2i_v2fl(int r[2], const float a[2]) <-- Copies 2D float vector to int vector, by rounding the values

Commit Details:

Full Hash: 28b9dfeece3f550cf494f4079ba982cc8164bb0f
Parent Commit: e6b8221
Lines Changed: +19, -17

3 Modified Paths:

/source/blender/blenlib/BLI_math_vector.h (+3, -0) (Diff)
/source/blender/blenlib/intern/math_vector_inline.c (+13, -0) (Diff)
/source/blender/editors/gpencil/gpencil_paint.c (+3, -17) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021