Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

x

source files: [cx]lsp.[ch]

SYNTAX

(x <vector> <vector>)

DESCRIPTION

This operator returns the cross-product of the given pair of vectors. The crossproduct is a vector perpendicular to both input vectors, with magnitude equal to the area of the parallelogram defined by the two input vectors, hence the crossproduct is useful for constructing surface normals, computing areas of triangular facets (take half the area of the parallelogram) and testing the vertex order of triangles (see if the vertex normal head winds up inside or outside the solid :).


Go to the first, previous, next, last section, table of contents.