Learn R Programming

Morpho (version 2.12)

getPointAlongOutline: Get a point along a line with a given distance from the start of the line

Description

Get a point along a line with a given distance from the start of the line

Usage

getPointAlongOutline(mat, dist = 15, reverse = FALSE)

Value

returns a vector containing the resulting coordinate

Arguments

mat

matrix with rows containing sequential coordinates

dist

numeric: distance from the first point on the line.

reverse

logical: if TRUE start from the end of the line