44 for (
unsigned int itr = 0; itr < count; itr++ )
46 len = sqrt (src[ itr ].x * src[ itr ].x +
47 src[ itr ].y * src[ itr ].y) ;
49 dst[ itr ].
x = src[ itr ].
x / len;
50 dst[ itr ].
y = src[ itr ].
y / len;
60 for (
unsigned int itr = 0; itr < count; itr++ )
62 len = sqrt (src[ itr ].x * src[ itr ].x +
63 src[ itr ].y * src[ itr ].y +
64 src[ itr ].z * src[ itr ].z);
66 dst[ itr ].
x = src[ itr ].
x / len;
67 dst[ itr ].
y = src[ itr ].
y / len;
68 dst[ itr ].
z = src[ itr ].
z / len;
78 for (
unsigned int itr = 0; itr < count; itr++ )
80 len = sqrt (src[ itr ].x * src[ itr ].x +
81 src[ itr ].y * src[ itr ].y +
82 src[ itr ].z * src[ itr ].z +
83 src[ itr ].w * src[ itr ].w);
85 dst[ itr ].
x = src[ itr ].
x / len;
86 dst[ itr ].
y = src[ itr ].
y / len;
87 dst[ itr ].
z = src[ itr ].
z / len;
88 dst[ itr ].
w = src[ itr ].
w / len;
A 2-tuple of ne10_float32_t values.
ne10_result_t ne10_normalize_vec4f_c(ne10_vec4f_t *dst, ne10_vec4f_t *src, ne10_uint32_t count)
Specific implementation of ne10_normalize_vec4f using plain C code.
ne10_result_t ne10_normalize_vec3f_c(ne10_vec3f_t *dst, ne10_vec3f_t *src, ne10_uint32_t count)
Specific implementation of ne10_normalize_vec3f using plain C code.
A 3-tuple of ne10_float32_t values.
ne10_result_t ne10_normalize_vec2f_c(ne10_vec2f_t *dst, ne10_vec2f_t *src, ne10_uint32_t count)
Specific implementation of ne10_normalize_vec2f using plain C code.
#define NE10_CHECKPOINTER_DstSrc
A 4-tuple of ne10_float32_t values.