Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/intern/math_vector_inline.c
| Show First 20 Lines • Show All 605 Lines • ▼ Show 20 Lines | |||||
| /* could add more... */ | /* could add more... */ | ||||
| MINLINE void negate_v3_short(short r[3]) | MINLINE void negate_v3_short(short r[3]) | ||||
| { | { | ||||
| r[0] = (short)-r[0]; | r[0] = (short)-r[0]; | ||||
| r[1] = (short)-r[1]; | r[1] = (short)-r[1]; | ||||
| r[2] = (short)-r[2]; | r[2] = (short)-r[2]; | ||||
| } | } | ||||
| MINLINE void negate_v2_int(int r[2]) | |||||
| { | |||||
| r[0] = -r[0]; | |||||
| r[1] = -r[1]; | |||||
| } | |||||
| MINLINE void abs_v2(float r[2]) | MINLINE void abs_v2(float r[2]) | ||||
| { | { | ||||
| r[0] = fabsf(r[0]); | r[0] = fabsf(r[0]); | ||||
| r[1] = fabsf(r[1]); | r[1] = fabsf(r[1]); | ||||
| } | } | ||||
| MINLINE void abs_v2_v2(float r[2], const float a[2]) | MINLINE void abs_v2_v2(float r[2], const float a[2]) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 431 Lines • Show Last 20 Lines | |||||