mirror of
https://github.com/3b1b/manim.git
synced 2025-11-13 19:57:48 +00:00
Slight tweak to get_unit_normal
This commit is contained in:
parent
1f613953d6
commit
8ac0aa484b
1 changed files with 1 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
vec3 get_unit_normal(vec3 p0, vec3 p1, vec3 p2){
|
||||
float tol = 1e-6;
|
||||
vec3 v1 = normalize(p1 - p0);
|
||||
vec3 v2 = normalize(p2 - p1);
|
||||
vec3 v2 = normalize(p2 - p0);
|
||||
vec3 cp = cross(v1, v2);
|
||||
float cp_norm = length(cp);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue