Lines Matching full:c
2 * Copyright (c) 2019 Kevin Townsend (KTOWN)
273 int zsl_vec_cross(struct zsl_vec *v, struct zsl_vec *w, struct zsl_vec *c) in zsl_vec_cross() argument
277 if ((v->sz != 3) || (w->sz != 3) || (c->sz != 3)) { in zsl_vec_cross()
286 * C = |Cy|, V = |Vy|, W = |Wy| in zsl_vec_cross()
296 c->data[0] = v->data[1] * w->data[2] - v->data[2] * w->data[1]; in zsl_vec_cross()
297 c->data[1] = v->data[2] * w->data[0] - v->data[0] * w->data[2]; in zsl_vec_cross()
298 c->data[2] = v->data[0] * w->data[1] - v->data[1] * w->data[0]; in zsl_vec_cross()
389 zsl_real_t c; in zsl_vec_is_equal() local
396 c = v->data[i] - w->data[i]; in zsl_vec_is_equal()
397 if (c >= eps || -c >= eps) { in zsl_vec_is_equal()
418 zsl_real_t c; in zsl_vec_contains() local
422 c = v->data[i] - val; in zsl_vec_contains()
423 if (c < eps && -c < eps) { in zsl_vec_contains()