Commit 9408d577 authored by Richard Hughes's avatar Richard Hughes

trivial: add gcm_vec3_init() for future code

parent b04258c9
......@@ -47,6 +47,25 @@ gcm_vec3_clear (GcmVec3 *src)
src->v2 = 0.0f;
}
/**
* gcm_vec3_init:
* @dest: the destination vector
* @v0: component value
* @v1: component value
* @v2: component value
*
* Initialises a vector.
**/
void
gcm_vec3_init (GcmVec3 *dest, gdouble v0, gdouble v1, gdouble v2)
{
g_return_if_fail (dest != NULL);
dest->v0 = v0;
dest->v1 = v1;
dest->v2 = v2;
}
/**
* gcm_vec3_scalar_multiply:
* @src: the source
......
......@@ -52,6 +52,10 @@ void gcm_vec3_scalar_multiply (const GcmVec3 *src,
GcmVec3 *dest);
gchar *gcm_vec3_to_string (const GcmVec3 *src);
gdouble *gcm_vec3_get_data (const GcmVec3 *src);
void gcm_vec3_init (GcmVec3 *dest,
gdouble v0,
gdouble v1,
gdouble v2);
void gcm_mat33_clear (const GcmMat3x3 *src);
gchar *gcm_mat33_to_string (const GcmMat3x3 *src);
gdouble *gcm_mat33_get_data (const GcmMat3x3 *src);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment