powered by
Finds the point that lies a given fraction along a line.
line_interpolate_point(x, fraction)
An object of class rs_POINT
rs_POINT
an object of class rs_LINESTRING
rs_LINESTRING
a numeric vector of length 1 or the same length as x. Must be a value between 0 and 1 inclusive.
x
x <- geom_linestring(c(-1, 0, 0), c(0, 0, 1)) line_interpolate_point(x, 0.5)
Run the code above in your browser using DataLab