예제 #1
0
파일: .c 프로젝트: 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);
}
예제 #2
0
파일: .c 프로젝트: BackupTheBerlios/vsg-svn
/**
 * 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;
}
예제 #3
0
파일: .c 프로젝트: BackupTheBerlios/vsg-svn
/**
 * 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);
}
예제 #4
0
파일: .c 프로젝트: 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;
}
예제 #5
0
파일: .c 프로젝트: 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;
}