3D
js
x,y,z for a point or normal
return new same vector
return new same negated
return new vector add a vector
this-a
乘a
除a
內積
t通常小於1
用來表示this 到a 之間的某個數
單位為1的向量
降階值
修改normal 方向
用lerp的方式產生一個介於this 與a 之間的pos and normal並用 t控制落點
change the side of the normal
create plane by 3 point vector
and w is plane dot with fisrt verctor(position)
以這個面為基準將多個面區分為語法線面相同的front 或back
如果有交集則切割面
flip vertex
flip plane
bsp:binary space partitioning tree
利用每個面的髮線區切割空間,如果空間在髮線的背面則視為true(或是包含)
flip polygons
flip plane
flip back and front
and change back to front 、 change front to back
bsp:binary space partitioning tree
a和b的 bsp tree 合併=a-b的截面
return combon all polygon from back and front to one array
my way
my way
my may