Eina_Quad_Group(3)

NAME
Eina_Quad_Group - Quadrangles

 - Quadrangles operations.

SYNOPSIS

  Data Structures
struct _Eina_Quad
Quadrangle definition.

  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.
EINA_API void eina_quad_rectangle_from (Eina_Quad *q, const Eina_Rectangle *r)
Transform the given rectangle to the given quadrangle.
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.
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.

Detailed Description

Quadrangles operations.

Function Documentation

  EINA_API void eina_quad_rectangle_to (const Eina_Quad * q, Eina_Rectangle * r)

Transform the given quadrangle to the given rectangle.

Parameters
    q The quadrangle to get coordinates.
    r The rectangle.

Since
    1.14

  EINA_API void eina_quad_rectangle_from (Eina_Quad * q, const Eina_Rectangle * r)

Transform the given rectangle to the given quadrangle.

Parameters
    q The quadrangle.
    r The rectangle to get coordinates.

Since
    1.14

  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
    q The quadrangle to set coordinates.
    x0 Top left x coordinate.
    y0 Top left y coordinate.
    x1 Top right x coordinate.
    y1 Top right y coordinate.
    x2 Bottom right x coordinate.
    y2 Bottom right y coordinate.
    x3 Bottom left x coordinate.
    y3 Bottom left y coordinate.

Since
    1.14

  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
    q The quadrangle to get coordinates.
    x0 Top left x coordinate.
    y0 Top left y coordinate.
    x1 Top right x coordinate.
    y1 Top right y coordinate.
    x2 Bottom right x coordinate.
    y2 Bottom right y coordinate.
    x3 Bottom left x coordinate.
    y3 Bottom 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.

Author

Generated automatically by Doxygen for EFL from the source code.