What’s the exact relationship between radius and zoom in Zoom_info?
What’s the exact relationship between radius and zoom in Zoom_info?
BY 01 Sep 2015Native Application Development
I got the zoom info struct from code as above, but I’m puzzled on the relation ship between “zoom” and “radius”.
/**
* @struct _Elm_Gesture_Zoom_Info
* @brief The structure type that holds zoom info for the user.
*/
struct _Elm_Gesture_Zoom_Info
{
Evas_Coord x, y; /**< Holds zoom center point reported to the user */
Evas_Coord radius; /**< Holds radius between fingers reported to the user */
double zoom; /**< Zoom value: @c 1.0 means no zoom */
double momentum; /**< Zoom momentum: zoom growth per second (NOT YET SUPPORTED) */
};
/**
* @typedef Elm_Gesture_Zoom_Info
* @brief The structure type that holds zoom info for the user.
*/
typedef struct _Elm_Gesture_Zoom_Info Elm_Gesture_Zoom_Info;
Below are my codes to output zhe zoom info data when zoom event comes.
I find the zoom value does not proportional growth with raidus. What’s the exact relationship between them? What are the exact geometric meaning for radius and zoom when two finger do zoom action on the screen? How the zoom value is caculated? How the raidus value is caculated?
What’s the exact relationship between radius and zoom in Zoom_info?
I got the zoom info struct from code as above, but I’m puzzled on the relation ship between “zoom” and “radius”.
Below are my codes to output zhe zoom info data when zoom event comes.
I got the log as below.
I find the zoom value does not proportional growth with raidus. What’s the exact relationship between them? What are the exact geometric meaning for radius and zoom when two finger do zoom action on the screen? How the zoom value is caculated? How the raidus value is caculated?
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio