Example #1
0
/**
 * vsg_vector3@t@_scalp:
 * @vec: a #VsgVector3@t@
 * @scal: a #@type@
 * @res: a #VsgVector3@t@ holding the result.
 *
 * Computes scalar product of @vec by @scal and stores the result in
 * @res. Argument aliasing is allowed.
 */
void vsg_vector3@t@_scalp (const VsgVector3@t@ *vec, @type@ scal,
                           VsgVector3@t@ *res)
{
#ifdef VSG_CHECK_PARAMS
  g_return_if_fail (vec != NULL);
  g_return_if_fail (res != NULL);
#endif

  vsg_vector3@t@_scalp_inline (vec, scal, res);
}
Example #2
0
File: .c Project: pigay/vsg
/**
 * vsg_quaternion@t@_scalp:
 * @quat: a #VsgQuaternion@t@
 * @scal: a #@type@
 * @result: a #VsgQuaternion@t@
 *
 * Performs scalar product on @quat with @scal as a multiplier.
 */
void vsg_quaternion@t@_scalp (const VsgQuaternion@t@ *quat,
                              @type@ scal,
                              VsgQuaternion@t@ *result)
{
#ifdef VSG_CHECK_PARAMS
  g_return_if_fail (quat != NULL);
  g_return_if_fail (result != NULL);
#endif

  vsg_quaternion@t@_scalp_inline (quat, scal, result);
}