Find a point (x
,y
) on the permiter of a rectangle
the rectangle origin starts at some arbitrary x
, y
and is maxX
wide and maxY
high.
Solutions can be written in any lang, although I wrote mine in JS
Find a point (x
,y
) on the permiter of a rectangle
the rectangle origin starts at some arbitrary x
, y
and is maxX
wide and maxY
high.
Solutions can be written in any lang, although I wrote mine in JS
https://gist.github.com/rankogit/4cbdc28c391452c1d61f09998b0f264a
Generates a random point on perimeter of a rectangle.