Diameter of a Window Frame
Computes the diameter of a window
- A window, whose diameter will be computed.
It is intended that this function compute the diameter of a window of arbitrary shape, i.e. the maximum distance between any two points in the window. The current implementation just computes the length of the diagonal of the rectangular frame surrounding the window.
- The numerical value of the diameter of the window.
w <- owin(c(0,1),c(0,1)) diameter(w) # returns sqrt(2)