Given a set of cartesian coordinates representing an object's trajectory, this function computes the net squared displacement of this object, that is the squared distances between each location and the first location of the trajectory

nsd(x, y, geo = FALSE)

## Arguments

x A vector of x (or longitude) coordinates corresponding to a single animal trajectory. A vector of y (or latitude) coordinates corresponding to a single animal trajectory. A logical value indicating whether the locations are defined by geographic coordinates (pairs of longitude/latitude values). Default: FALSE.

## Value

A vector of the same length as x and y corresponding to the net squared distances between each location and the first location of the trajectory.

## See also

linDist

## Examples

# TODO