Beispiel #1
0
/**
 * vsg_matrix3@t@_copy:
 * @dst: a #VsgMatrix3@t@
 * @src: a #VsgMatrix3@t@
 *
 * Copies @src to @dst.
 */
void vsg_matrix3@t@_copy (const VsgMatrix3@t@ *src, VsgMatrix3@t@ *dst)
{
#ifdef VSG_CHECK_PARAMS
  g_return_if_fail (dst != NULL);
  g_return_if_fail (src != NULL);
#endif

  vsg_matrix3@t@_copy_inline (src, dst);
}
Beispiel #2
0
/**
 * vsg_matrix3@t@_clone:
 * @src: a #VsgMatrix3@t@.
 *
 * Duplicates @src.
 *
 * Returns: a copy of @src.
 */
VsgMatrix3@t@ *vsg_matrix3@t@_clone (const VsgMatrix3@t@ *src)
{
  VsgMatrix3@t@ *dst;

#ifdef VSG_CHECK_PARAMS
  g_return_val_if_fail (src != NULL, NULL);
#endif

  dst = _matrix3@t@_alloc ();

  vsg_matrix3@t@_copy_inline (src, dst);

  return dst;
}
Beispiel #3
0
Datei: .c Projekt: pigay/vsg
/**
 * vsg_quaternion@t@_clone:
 * @src: a #VsgQuaternion@t@
 *
 * Duplicates @src.
 *
 * Returns: a newly allocated copy of @src.
 */
VsgQuaternion@t@ *vsg_quaternion@t@_clone (const VsgQuaternion@t@ *src)
{
  VsgQuaternion@t@ *dst;

#ifdef VSG_CHECK_PARAMS
  g_return_val_if_fail (src != NULL, NULL);
#endif

#if _USE_G_SLICES
  dst = g_slice_new (VsgQuaternion@t@);
#else
  dst = _quaternion@t@_alloc ();
#endif

  vsg_quaternion@t@_copy_inline (src, dst);

  return dst;
}