Beispiel #1
0
Datei: .c Projekt: pigay/vsg
/**
 * vsg_quaternion@t@_identity:
 * @quat: a #VsgQuaternion@t@
 *
 * Sets @quat components to Identity.
 */
void vsg_quaternion@t@_identity (VsgQuaternion@t@ *quat)
{
#ifdef VSG_CHECK_PARAMS
  g_return_if_fail (quat != NULL);
#endif

  vsg_quaternion@t@_identity_inline (quat);
}
Beispiel #2
0
/**
 * vsg_matrix3@t@_identity_new:
 *
 * Allocates a new #VsgMatrix3@t@ with Identity component (%1 on the diagonal,
 * %0 elsewhere).
 *
 * Returns: new #VsgMatrix3@t@ instance
 */
VsgMatrix3@t@ *vsg_matrix3@t@_identity_new ()
{
  VsgMatrix3@t@ *result = _matrix3@t@_alloc ();

  vsg_matrix3@t@_identity_inline (result);

  return result;
}
Beispiel #3
0
/**
 * vsg_matrix3@t@_identity:
 * @mat: a #VsgMatrix3@t@
 *
 * Sets components of @mat to values of Identity.
 */
void vsg_matrix3@t@_identity (VsgMatrix3@t@ *mat)
{
#ifdef VSG_CHECK_PARAMS
  g_return_if_fail (mat != NULL);
#endif

  vsg_matrix3@t@_identity_inline (mat);
}
Beispiel #4
0
Datei: .c Projekt: pigay/vsg
/**
 * vsg_quaternion@t@_identity_new:
 *
 * Allocates a new #VsgQuaternion@t@ with Identity component.
 *
 * Returns: new #VsgQuaternion@t@ instance
 */
VsgQuaternion@t@ *vsg_quaternion@t@_identity_new ()
{
#if _USE_G_SLICES
  VsgQuaternion@t@ *result = g_slice_new (VsgQuaternion@t@);
#else
  VsgQuaternion@t@ *result = _quaternion@t@_alloc ();
#endif

  vsg_quaternion@t@_identity_inline (result);

  return result;
}
Beispiel #5
0
Datei: .c Projekt: pigay/vsg
/**
 * vsg_matrix3@t@_identity_new:
 *
 * Allocates a new #VsgMatrix3@t@ with Identity component (%1 on the diagonal,
 * %0 elsewhere).
 *
 * Returns: new #VsgMatrix3@t@ instance
 */
VsgMatrix3@t@ *vsg_matrix3@t@_identity_new ()
{
#if _USE_G_SLICES
  VsgMatrix3@t@ *result = g_slice_new (VsgMatrix3@t@);
#else
  VsgMatrix3@t@ *result = _matrix3@t@_alloc ();
#endif

  vsg_matrix3@t@_identity_inline (result);

  return result;
}