Home | History | Annotate | Download | only in vega

Lines Matching defs:norm

232 static INLINE void bezier_normal_at(const struct bezier *bez, float t, float *norm)
239 norm[0] = (bez->y2-bez->y1) * a + (bez->y3-bez->y2) * b + (bez->y4-bez->y3) * c;
240 norm[1] = -(bez->x2-bez->x1) * a - (bez->x3-bez->x2) * b - (bez->x4-bez->x3) * c;
281 float norm[4];
284 line_normal(l, norm);
285 line_normalize(norm);
287 tx = (norm[2] - norm[0]) * offset;
288 ty = (norm[3] - norm[1]) * offset;