摘要: assignment7中,使用了如上公式在三角形中采样,看着一头雾水,经过搜集资料,最终发现这是一个严谨的三角形随机均匀采样算法 选自 https://math.stackexchange.com/questions/18686/uniform-random-point-in-triangle-in 阅读全文
posted @ 2023-05-23 21:03 james_ling 阅读(190) 评论(0) 推荐(0) 编辑
摘要: #define ROUND_UP(x, align) (((int)(x) + (align - 1)) & ~(align - 1)) #define MIN(a, b) (((a) < (b)) ? (a) : (b)) #define BLOCK_SZ 8 void transpose_sub 阅读全文
posted @ 2022-09-25 15:24 james_ling 阅读(33) 评论(0) 推荐(0) 编辑