dot

From OpenGL Reference
Jump to navigation Jump to search

Calculate the dot product of two vectors.

Declaration[edit]

float dot( genType x, genType y );
double dot( genDType x, genDType y );


Parameters[edit]

x - Specifies the first of two vectors
y - Specifies the second of two vectors


Description[edit]

 dot returns the dot product of two vectors, x and y . i.e., [math][/math] 


Version Support[edit]

dot (genType) 1.1+
dot (genDType) 4.0+

See Also[edit]

 cross 


Copyright[edit]

Copyright© 2011-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.