Find formula/code: Can a rectangle can be inscribed in a circle segment?
$10-30 USD
Concluído
Publicado há aproximadamente 5 anos
$10-30 USD
Pago na entrega
The problem is to find:
1. Can a particular rectangle fit inside a circle segment?
2. If the rectangle would fit, at what coordinates should it be drawn?
You may express the answers above as mathematical formulas or Javascript statements. Choose what you are comfortable with.
See this doc for screenshots, definitions, and problem constraints: [login to view URL]
Hello sir,
I have found a mathmatical formula for which we can compute x and we can check whether a rectangle is valid or not .
plus it can be easily implemented in javascript