From 6dd8ceef2a21f64cbb61a96560c50c162f9dae39 Mon Sep 17 00:00:00 2001 From: Yiming Wu Date: Wed, 29 Jun 2022 22:54:29 +0800 Subject: LineArt: Shadow and related functionalities. This patch includes the full shadow functionality for LineArt: - Light contour and cast shadow lines. - Lit/shaded region selection. - Enclosed light/shadow shape calculation. - Silhouette/anti-silhouette selection. - Intersection priority based on shadow edge identifier. Reviewed By: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D15109 --- source/blender/blenlib/BLI_math_vector.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/blenlib/BLI_math_vector.h') diff --git a/source/blender/blenlib/BLI_math_vector.h b/source/blender/blenlib/BLI_math_vector.h index f3283371a3c..0b178064a4c 100644 --- a/source/blender/blenlib/BLI_math_vector.h +++ b/source/blender/blenlib/BLI_math_vector.h @@ -40,6 +40,10 @@ MINLINE void swap_v2_v2(float a[2], float b[2]); MINLINE void swap_v3_v3(float a[3], float b[3]); MINLINE void swap_v4_v4(float a[4], float b[4]); +MINLINE void swap_v2_v2_db(double a[2], double b[2]); +MINLINE void swap_v3_v3_db(double a[3], double b[3]); +MINLINE void swap_v4_v4_db(double a[4], double b[4]); + /* unsigned char */ MINLINE void copy_v2_v2_uchar(unsigned char r[2], const unsigned char a[2]); -- cgit v1.2.3