Beispiel #1
0
/**
 * vsg_vector3@t@_dotp:
 * @vec: a #VsgVector3@t@
 * @other: a #VsgVector3@t@
 *
 * Computes the dot product of @vec by @other.
 *
 * Returns: result of the dot product.
 */
@type@ vsg_vector3@t@_dotp (const VsgVector3@t@ *vec,
                            const VsgVector3@t@ *other)
{
#ifdef VSG_CHECK_PARAMS
  g_return_val_if_fail (vec != NULL, 0);
  g_return_val_if_fail (other != NULL, 0);
#endif

  return vsg_vector3@t@_dotp_inline (vec, other);
}
Beispiel #2
0
Datei: .c Projekt: pigay/vsg
/**
 * vsg_quaternion@t@_dotp:
 * @quat: a #VsgQuaternion@t@
 * @other: a #VsgQuaternion@t@
 *
 * Computes dot product of @quat with @other.
 *
 * Returns: dot product of @quat by @other.
 */
@type@ vsg_quaternion@t@_dotp (const VsgQuaternion@t@ *quat,
                               const VsgQuaternion@t@ *other)
{
#ifdef VSG_CHECK_PARAMS
  g_return_val_if_fail (quat != NULL, 0);
  g_return_val_if_fail (other != NULL, 0);
#endif

  return vsg_quaternion@t@_dotp_inline (quat, other);

}