Method Cairo.MeshPattern()->get_control_point()


Method get_control_point

array(float) get_control_point(int(0..) patch_num, int(2bit) point_num)

Description

Gets the control point point_num of patch patch_num for a mesh pattern.

patch_num can range from 0 to n-1 where n is the number returned by get_patch_count().

Valid values for point_num are from 0 to 3 and identify the control points as explained in MeshPattern.

Parameter patch_num

the patch number to return data for

Parameter point_num

the control point number to return data for

Returns

the coordinates of the control point

Array
float 0

the x coordinate of the control point

float 1

the y coordinate of the control point