line_interpolate_point {rsgeo} | R Documentation |
Interpolate a Point on a LineString
Description
Finds the point that lies a given fraction along a line.
Usage
line_interpolate_point(x, fraction)
Arguments
x |
an object of class |
fraction |
a numeric vector of length 1 or the same length as |
Value
An object of class rs_POINT
Examples
x <- geom_linestring(c(-1, 0, 0), c(0, 0, 1))
line_interpolate_point(x, 0.5)
[Package rsgeo version 0.1.6 Index]