Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
cross_product(3)		Allegro	manual		      cross_product(3)

NAME
       cross_product,  cross_product_f - Calculates the	cross product. Allegro
       game programming	library.

SYNOPSIS
       #include	<allegro.h>

       void cross_product(fixed	x1, y1,	z1, x2,	y2, z2,	*xout, *yout, *zout);

       void cross_product_f(float x1,  y1,  z1,	 x2,  y2,  z2,	*xout,	*yout,
       *zout);

DESCRIPTION
       Calculates  the	cross product (x1, y1, z1) x (x2, y2, z2), storing the
       result in (*xout, *yout,	*zout).	The cross product is perpendicular  to
       both  of	 the input vectors, so it can be used to generate polygon nor-
       mals.

SEE ALSO
       dot_product(3), polygon_z_normal(3), normalize_vector(3), exstars(3)

Allegro				 version 4.4.2		      cross_product(3)

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=cross_product&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help