dbg decl
This commit is contained in:
parent
a2b2108d95
commit
8dfe9478bb
@ -385,7 +385,10 @@ double DECL::EdgeAngle(int edge)
|
|||||||
V.x = nx/len; V.y = ny/len; V.z = nz/len;
|
V.x = nx/len; V.y = ny/len; V.z = nz/len;
|
||||||
dotprod = U.x*V.x + U.y*V.y + U.z*V.z;
|
dotprod = U.x*V.x + U.y*V.y + U.z*V.z;
|
||||||
if (dotprod > 1.f) dotprod=1.f;
|
if (dotprod > 1.f) dotprod=1.f;
|
||||||
if (dotprod < 0.f) dotprod=-dotprod;
|
if (dotprod < 0.f){
|
||||||
|
dotprod=-dotprod;
|
||||||
|
V.x = -V.x; V.y = -V.y; V.z = -V.z;
|
||||||
|
}
|
||||||
angle = acos(dotprod);
|
angle = acos(dotprod);
|
||||||
/* project onto plane of cube face also works
|
/* project onto plane of cube face also works
|
||||||
W = U - dotprod*V;
|
W = U - dotprod*V;
|
||||||
|
Loading…
Reference in New Issue
Block a user