Horizontal coordinate of mooring elements

x(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 horizontal coordinate in metres.

Author

Dan Kelley

Examples

library(mooring)
m <- mooring(anchor(), wire(length = 100), float("HMB 20"), waterDepth = 200)
x(m)
#> [1] 0 0 0