Lines Matching refs:vec2d
66 struct vec2d { struct
71 struct vec2d a; argument
72 struct vec2d b;
4112 vec2d_cross_product(struct vec2d a, struct vec2d b) in vec2d_cross_product()
4117 static struct vec2d
4118 vec2d_add(struct vec2d a, struct vec2d b) in vec2d_add()
4120 return (struct vec2d) { in vec2d_add()
4126 static struct vec2d
4127 vec2d_subtract(struct vec2d a, struct vec2d b) in vec2d_subtract()
4129 return (struct vec2d) { in vec2d_subtract()
4135 static struct vec2d
4136 vec2d_multiply_constant(double c, struct vec2d a) in vec2d_multiply_constant()
4138 return (struct vec2d) { in vec2d_multiply_constant()
4146 struct vec2d *intersection) in lines_intersect()
4148 struct vec2d p = line1->a; in lines_intersect()
4149 struct vec2d r = vec2d_subtract(line1->b, line1->a); in lines_intersect()
4150 struct vec2d q = line2->a; in lines_intersect()
4151 struct vec2d s = vec2d_subtract(line2->b, line2->a); in lines_intersect()
4204 .a = (struct vec2d) { in add_border()
4208 .b = (struct vec2d) { in add_border()
4499 struct vec2d intersection; in get_closest_border()
4500 struct vec2d delta; in get_closest_border()
4601 .a = (struct vec2d) { in weston_pointer_clamp_event_to_region()
4605 .b = (struct vec2d) { in weston_pointer_clamp_event_to_region()