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

z(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 vertical coordinate in metres.

Author

Dan Kelley

Examples

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