Developers Web home

Find the Normal vector of plane

Calculate the normal unit vector of a face or plane

To derived the normal unit vector n of a plane/face, we can use any two vectors that lie on the plane.

PQ and PS in this example

    Qx - Px  
PQ =    Qy - Py  
    Qz - Pz  

    Sx - Px  
PS =    Sy - Py  
    Sz - Pz  

    ( PQy × PSz ) - ( PQz × PSy )  
The normal vector n =    ( PQz × PSx ) - ( PQx × PSz )  
    ( PQx × PSy ) - ( PQy × PSx )  
    ( (Qy - Py) × (Sz - Pz) ) - ( (Qz - Pz) × (Sy - Py) )  
The normal vector n =    ( (Qz - Pz) × (Sx - Px) ) - ( (Qx - Px) × (Sz - Pz) )  
    ( (Qx - Px) × (Sy - Py) ) - ( (Qy - Py) × (Sx - Px) )  

To calculate the unit vector:

First calculate the length of the normal vector

l = √( nx2 + ny2 + nz2 )

    nx / l  
The unit vector n =    ny / l  
    nz / l  
No conversation on this topic You must be logged in to add to the conversation