math: Adds an experimental cogl_vector3_* API
authorRobert Bragg <robert@linux.intel.com>
Thu, 20 May 2010 13:54:44 +0000 (14:54 +0100)
committerRobert Bragg <robert@linux.intel.com>
Thu, 20 May 2010 16:18:24 +0000 (17:18 +0100)
commitbb2d088cb1c9c1341dc70c4b779bc6ccb57f10e2
treea1de2a93b1ebea3e6c5dd6351dbd39b944bf3749
parent78325a34db372ddcd0c60197645d208108265119
math: Adds an experimental cogl_vector3_* API

This adds a math utility API for handling 3 component, single precision
float vectors with the following; mostly self explanatory functions:

cogl_vector3_init
cogl_vector3_init_zero
cogl_vector3_equal
cogl_vector3_equal_with_epsilon
cogl_vector3_copy
cogl_vector3_free
cogl_vector3_invert
cogl_vector3_add
cogl_vector3_subtract
cogl_vector3_multiply_scalar
cogl_vector3_divide_scalar
cogl_vector3_normalize
cogl_vector3_magnitude
cogl_vector3_cross_product
cogl_vector3_dot_product
cogl_vector3_distance

Since the API is experimental you will need to define
COGL_ENABLE_EXPERIMENTAL_API before including cogl.h if you want to use
the API.
clutter/cogl/cogl/Makefile.am
clutter/cogl/cogl/cogl-vector.c [new file with mode: 0644]
clutter/cogl/cogl/cogl-vector.h [new file with mode: 0644]
clutter/cogl/cogl/cogl.h
doc/reference/cogl/cogl-docs.xml.in
doc/reference/cogl/cogl-sections.txt