This is the depth of the top of the element. See also z(), which is the negative of the result from depth().

depth(m, stagnant = FALSE, skipWire = FALSE)

Arguments

m

a mooring object, created by mooring().

stagnant

logical value indicating whether to return values for the mooring configuration in the stagnant case (with zero velocity) or the present case (possibly with nonzero velocity).

skipWire

logical value indicating whether to skip wire elements, i.e. to return values just for floats, instruments, etc.

Value

a numeric vector of depth in metres.

Author

Dan Kelley

Examples

library(mooring)
m <- mooring(anchor(), wire(length = 100), float("HMB 20"), waterDepth = 120)
depth(m)
#> [1]  19.342  19.850 119.850