! Vektor 1: A = (ax,ay,az)
ax = x1-x2
ay = y1-y2
az = z1-z2
! Vektor 2: B = (bx,by,bz)
bx = x2-x3
by = y2-y3
bz = z2-z3
! Solution 1
! perpendicular Vektor to A and B:
! v = (vx,vy,vz)
vx = by*az - bz*ay
vy = bz*ax - bx*az
vz = bx*ay - by*ax
! Solution 2
! perpendicular Vektor to A and B:
! V = (vx,vy,vz)
vx = ay*bz - az*by
vy = az*bx - ax*bz
vz = ax*by - ay*bx