Tizen Native API  7.0
Data Types

Eina provides an easy to use and optimized data types and structures.

Since (EFL) :
1.2

Functions

static void eina_vector2_set (Eina_Vector2 *dst, double x, double y)
 Set parameters to vector.
static void eina_vector2_array_set (Eina_Vector2 *dst, const double *v)
 Set array to vector.
static void eina_vector2_copy (Eina_Vector2 *dst, const Eina_Vector2 *src)
 Copy vector.
static void eina_vector2_negate (Eina_Vector2 *out, const Eina_Vector2 *v)
 Make negative vector.
static void eina_vector2_add (Eina_Vector2 *out, const Eina_Vector2 *a, const Eina_Vector2 *b)
 Add two vectors.
static void eina_vector2_subtract (Eina_Vector2 *out, const Eina_Vector2 *a, const Eina_Vector2 *b)
 Subtract two vectors.
static void eina_vector2_scale (Eina_Vector2 *out, const Eina_Vector2 *v, double scale)
 Scale vector.
static double eina_vector2_dot_product (const Eina_Vector2 *a, const Eina_Vector2 *b)
 Return the dot product of the two vectors.
static double eina_vector2_length_get (const Eina_Vector2 *v)
 Return the length of the given vector.
static double eina_vector2_length_square_get (const Eina_Vector2 *v)
 Return the length in square of the given vector.
static double eina_vector2_distance_get (const Eina_Vector2 *a, const Eina_Vector2 *b)
 Return the distance between of two vectors.
static double eina_vector2_distance_square_get (const Eina_Vector2 *a, const Eina_Vector2 *b)
 Return the distance in square between of two vectors.
static void eina_vector2_normalize (Eina_Vector2 *out, const Eina_Vector2 *v)
 normalize vector.
static void eina_vector2_transform (Eina_Vector2 *out, const Eina_Matrix2 *m, const Eina_Vector2 *v)
 Transform vector.
static void eina_vector2_homogeneous_position_transform (Eina_Vector2 *out, const Eina_Matrix3 *m, const Eina_Vector2 *v)
 Homogeneous position transform vector.
static void eina_vector2_homogeneous_direction_transform (Eina_Vector2 *out, const Eina_Matrix3 *m, const Eina_Vector2 *v)
 Homogeneous direction transform vector.

Function Documentation

static void eina_vector2_add ( Eina_Vector2 *  out,
const Eina_Vector2 *  a,
const Eina_Vector2 *  b 
) [static]

Add two vectors.

Parameters:
[out]outThe resulting vector.
[in]aThe first member of the add.
[in]bThe second member of the add.
Since (EFL) :
1.17
static void eina_vector2_array_set ( Eina_Vector2 *  dst,
const double *  v 
) [static]

Set array to vector.

Parameters:
[out]dstThe resulting vector.
[in]vThe the array[2] for set.

Set to vector first 2 elements from array.

Since (EFL) :
1.17
static void eina_vector2_copy ( Eina_Vector2 *  dst,
const Eina_Vector2 *  src 
) [static]

Copy vector.

Parameters:
[out]dstThe vector copy.
[in]srcThe vector for copy.
Since (EFL) :
1.17
static double eina_vector2_distance_get ( const Eina_Vector2 *  a,
const Eina_Vector2 *  b 
) [static]

Return the distance between of two vectors.

Parameters:
[in]aThe first vector.
[in]bThe second vector.
Returns:
The distance.
Since (EFL) :
1.17
static double eina_vector2_distance_square_get ( const Eina_Vector2 *  a,
const Eina_Vector2 *  b 
) [static]

Return the distance in square between of two vectors.

Parameters:
[in]aThe first vector.
[in]bThe second vector.
Returns:
The distance in square.
Since (EFL) :
1.17
static double eina_vector2_dot_product ( const Eina_Vector2 *  a,
const Eina_Vector2 *  b 
) [static]

Return the dot product of the two vectors.

Parameters:
[in]aThe first member.
[in]bThe second member.
Returns:
The dot product.
Since (EFL) :
1.17
static void eina_vector2_homogeneous_direction_transform ( Eina_Vector2 *  out,
const Eina_Matrix3 m,
const Eina_Vector2 *  v 
) [static]

Homogeneous direction transform vector.

Parameters:
[out]outThe resulting vector.
[in]mThe matrix for transform.
[in]vThe vector for transform.
Since (EFL) :
1.17
static void eina_vector2_homogeneous_position_transform ( Eina_Vector2 *  out,
const Eina_Matrix3 m,
const Eina_Vector2 *  v 
) [static]

Homogeneous position transform vector.

Parameters:
[out]outThe resulting vector.
[in]mThe matrix for transform.
[in]vThe vector for transform.
Since (EFL) :
1.17
static double eina_vector2_length_get ( const Eina_Vector2 *  v) [static]

Return the length of the given vector.

Parameters:
[in]vThe vector.
Returns:
The length.
Since (EFL) :
1.17
static double eina_vector2_length_square_get ( const Eina_Vector2 *  v) [static]

Return the length in square of the given vector.

Parameters:
[in]vThe vector.
Returns:
The length in square.
Since (EFL) :
1.17
static void eina_vector2_negate ( Eina_Vector2 *  out,
const Eina_Vector2 *  v 
) [static]

Make negative vector.

Parameters:
[out]outThe resulting vector.
[in]vThe current vector.
Since (EFL) :
1.17
static void eina_vector2_normalize ( Eina_Vector2 *  out,
const Eina_Vector2 *  v 
) [static]

normalize vector.

Parameters:
[out]outThe resulting vector.
[in]vThe vector for normalize.
Since (EFL) :
1.17
static void eina_vector2_scale ( Eina_Vector2 *  out,
const Eina_Vector2 *  v,
double  scale 
) [static]

Scale vector.

Parameters:
[out]outThe resulting vector.
[in]vThe vector for scale.
[in]scaleThe scale value.
Since (EFL) :
1.17
static void eina_vector2_set ( Eina_Vector2 *  dst,
double  x,
double  y 
) [static]

Set parameters to vector.

Parameters:
[out]dstThe resulting vector.
[in]xThe x component.
[in]yThe y component.
Since (EFL) :
1.17
static void eina_vector2_subtract ( Eina_Vector2 *  out,
const Eina_Vector2 *  a,
const Eina_Vector2 *  b 
) [static]

Subtract two vectors.

Parameters:
[out]outThe resulting vector
[in]aThe first member of the subtract
[in]bThe second member of the subtract
Since (EFL) :
1.17
static void eina_vector2_transform ( Eina_Vector2 *  out,
const Eina_Matrix2 m,
const Eina_Vector2 *  v 
) [static]

Transform vector.

Parameters:
[out]outThe resulting vector.
[in]mThe matrix for transform.
[in]vThe vector for transform.
Since (EFL) :
1.17