Top |
void | cd_vec3_clear () |
void | cd_vec3_add () |
void | cd_vec3_subtract () |
void | cd_vec3_scalar_multiply () |
void | cd_vec3_copy () |
gdouble | cd_vec3_squared_error () |
gchar * | cd_vec3_to_string () |
gdouble * | cd_vec3_get_data () |
void | cd_vec3_init () |
void | cd_mat33_init () |
void | cd_mat33_clear () |
gchar * | cd_mat33_to_string () |
gdouble * | cd_mat33_get_data () |
void | cd_mat33_set_identity () |
void | cd_mat33_scalar_multiply () |
void | cd_mat33_vector_multiply () |
void | cd_mat33_matrix_multiply () |
gboolean | cd_mat33_reciprocal () |
gdouble | cd_mat33_determinant () |
void | cd_mat33_normalize () |
void | cd_mat33_copy () |
void
cd_vec3_clear (CdVec3 *src
);
Clears a vector, setting all it's values to zero.
void cd_vec3_add (const CdVec3 *src1
,const CdVec3 *src2
,CdVec3 *dest
);
Adds two vector quantaties
The arguments src
and dest
can be the same value.
void cd_vec3_subtract (const CdVec3 *src1
,const CdVec3 *src2
,CdVec3 *dest
);
Subtracts one vector quantaty from another
The arguments src
and dest
can be the same value.
void cd_vec3_scalar_multiply (const CdVec3 *src
,gdouble value
,CdVec3 *dest
);
Multiplies a vector with a scalar.
The arguments src
and dest
can be the same value.
void cd_vec3_copy (const CdVec3 *src
,CdVec3 *dest
);
Copies the vector into another vector.
The arguments src
and dest
cannot be the same value.
gdouble cd_vec3_squared_error (const CdVec3 *src1
,const CdVec3 *src2
);
Gets the mean squared error for a pair of vectors
gchar *
cd_vec3_to_string (const CdVec3 *src
);
Obtains a string representaton of a vector.
gdouble *
cd_vec3_get_data (const CdVec3 *src
);
Gets the raw data for the vector.
void cd_vec3_init (CdVec3 *dest
,gdouble v0
,gdouble v1
,gdouble v2
);
Initialises a vector.
void cd_mat33_init (CdMat3x3 *dest
,gdouble m00
,gdouble m01
,gdouble m02
,gdouble m10
,gdouble m11
,gdouble m12
,gdouble m20
,gdouble m21
,gdouble m22
);
Initialises a matrix.
void
cd_mat33_clear (const CdMat3x3 *src
);
Clears a matrix value, setting all it's values to zero.
gchar *
cd_mat33_to_string (const CdMat3x3 *src
);
Obtains a string representaton of a matrix.
gdouble *
cd_mat33_get_data (const CdMat3x3 *src
);
Gets the raw data for the matrix.
void
cd_mat33_set_identity (CdMat3x3 *src
);
Sets the matrix to an identity value.
void cd_mat33_scalar_multiply (const CdMat3x3 *mat_src
,gdouble value
,CdMat3x3 *mat_dest
);
Multiplies a matrix with a scalar.
The arguments vec_src
and vec_dest
can be the same value.
void cd_mat33_vector_multiply (const CdMat3x3 *mat_src
,const CdVec3 *vec_src
,CdVec3 *vec_dest
);
Multiplies a matrix with a vector.
The arguments vec_src
and vec_dest
cannot be the same value.
void cd_mat33_matrix_multiply (const CdMat3x3 *mat_src1
,const CdMat3x3 *mat_src2
,CdMat3x3 *mat_dest
);
Multiply (convolve) one matrix with another.
The arguments mat_src1
cannot be the same as mat_dest
, and
mat_src2
cannot be the same as mat_dest
.
gboolean cd_mat33_reciprocal (const CdMat3x3 *src
,CdMat3x3 *dest
);
Inverts the matrix.
The arguments src
and dest
cannot be the same value.
gdouble
cd_mat33_determinant (const CdMat3x3 *src
);
Gets the determinant of the matrix.
void cd_mat33_normalize (const CdMat3x3 *src
,CdMat3x3 *dest
);
Normalizes a matrix
The arguments src
and dest
can be the same value.