OpenCV - Extracting the data from a Point2f variable

I'm doing a project in OpenCV. I have this variable which is of type Point2f.

cv::Point2f initial;

The value of initial is [656, 55]. Question is how do I extract these 2 numbers into 2 variables?
It was initial.x and initial.y

figured it out :)
Looking at the documentation:

Point2f is a typedef of Point_<float>, which has public members x and y.

cv::Point2f initial(656, 55);
float xval = initial.x; // 656
float yval = initial.y; // 55 
Topic archived. No new replies allowed.