Data Structures | Typedefs | Functions
Quadrangles

Quadrangles operations. More...

Data Structures

struct  _Eina_Quad
 Quadrangle definition. More...
 

Typedefs

typedef struct _Eina_Quad Eina_Quad
 Quadrangle definition.
 

Functions

EINA_API void eina_quad_rectangle_to (const Eina_Quad *q, Eina_Rectangle *r)
 Transform the given quadrangle to the given rectangle. More...
 
EINA_API void eina_quad_rectangle_from (Eina_Quad *q, const Eina_Rectangle *r)
 Transform the given rectangle to the given quadrangle. More...
 
EINA_API void eina_quad_coords_set (Eina_Quad *q, double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3)
 Sets the values of the coordinates of the given quadrangle. More...
 
EINA_API void eina_quad_coords_get (const Eina_Quad *q, double *x0, double *y0, double *x1, double *y1, double *x2, double *y2, double *x3, double *y3)
 Gets the values of the coordinates of the given quadrangle. More...
 

Detailed Description

Quadrangles operations.

Function Documentation

◆ eina_quad_rectangle_to()

EINA_API void eina_quad_rectangle_to ( const Eina_Quad q,
Eina_Rectangle r 
)

Transform the given quadrangle to the given rectangle.

Parameters
[in]qThe quadrangle to get coordinates.
[out]rThe rectangle.
Since
1.14

◆ eina_quad_rectangle_from()

EINA_API void eina_quad_rectangle_from ( Eina_Quad q,
const Eina_Rectangle r 
)

Transform the given rectangle to the given quadrangle.

Parameters
[in]qThe quadrangle.
[out]rThe rectangle to get coordinates.
Since
1.14

◆ eina_quad_coords_set()

EINA_API void eina_quad_coords_set ( Eina_Quad q,
double  x0,
double  y0,
double  x1,
double  y1,
double  x2,
double  y2,
double  x3,
double  y3 
)

Sets the values of the coordinates of the given quadrangle.

Parameters
[out]qThe quadrangle to set coordinates.
[in]x0Top left x coordinate.
[in]y0Top left y coordinate.
[in]x1Top right x coordinate.
[in]y1Top right y coordinate.
[in]x2Bottom right x coordinate.
[in]y2Bottom right y coordinate.
[in]x3Bottom left x coordinate.
[in]y3Bottom left y coordinate.
Since
1.14

◆ eina_quad_coords_get()

EINA_API void eina_quad_coords_get ( const Eina_Quad q,
double *  x0,
double *  y0,
double *  x1,
double *  y1,
double *  x2,
double *  y2,
double *  x3,
double *  y3 
)

Gets the values of the coordinates of the given quadrangle.

Parameters
[in]qThe quadrangle to get coordinates.
[out]x0Top left x coordinate.
[out]y0Top left y coordinate.
[out]x1Top right x coordinate.
[out]y1Top right y coordinate.
[out]x2Bottom right x coordinate.
[out]y2Bottom right y coordinate.
[out]x3Bottom left x coordinate.
[out]y3Bottom left y coordinate.
Since
1.14

References _Eina_Quad::x0, _Eina_Quad::x1, _Eina_Quad::x2, _Eina_Quad::x3, _Eina_Quad::y0, _Eina_Quad::y1, _Eina_Quad::y2, and _Eina_Quad::y3.