[][src]Function spatialite_sys::gaiaLineGetPoint

pub unsafe extern "C" fn gaiaLineGetPoint(
    ln: gaiaLinestringPtr,
    v: c_int,
    x: *mut f64,
    y: *mut f64,
    z: *mut f64,
    m: *mut f64
) -> c_int

Gets coodinates from a Linestring's Point

\param ln pointer to Linestring 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 gaiaLineSetPoint, gaiaGetPoint, gaiaGetPointXYZ, gaiaGetPointXYM, gaiaGetPointXYZM

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