[][src]Function spatialite_sys::gaiaRingGetPoint

pub unsafe extern "C" fn gaiaRingGetPoint(
    rng: gaiaRingPtr,
    v: c_int,
    x: *mut f64,
    y: *mut f64,
    z: *mut f64,
    m: *mut f64
) -> c_int

Gets coordinates from a Ring's Point

\param rng pointer to Ring object. \param v relative position of Point: first Point has index 0 \param x on completion this variable will contain the Point X coordinate. \param y on completion this variable will contain the Point Y coordinate. \param z on completion this variable will contain the Point Z coordinate. \param m on completion this variable will contain the Point M measure.

\return 0 on failure: any other different value on success.

\sa gaiaRingSetPoint, gaiaGetPoint, gaiaGetPointXYZ, gaiaGetPointXYM, gaiaGetPointXYZM

\note this function perform the same identical task performed by gaiaGetPoint(), gaiaGetPointXYZ(), gaiaGetPointXYM() and gaiaGetPointXYZM() macros. \n using the gaiaRingGetPoint() function is a little bit slower but is intrinsically safest, because misused macros can easily cause severe memory corruption. \n gaiaRingGetPoint() instead will always ensure that the appropriate dimensions (as declared by the Ring object) will be correctly used.