A Circle and a Square

  • + 1 comment

    Checking if the points lies inside a square can be done without any floating point operations. Two hints (References almost contain the solution to this problem. Do not open them if you still want to figure your own way out just by using the hints) :

    • You can calculate the other veticies of the squre using the two diagonal points given using some maniputaion of vectors. The only factor of division by 2 can be taken to the other side of the inequalities while comparison, to avoid division. Reference
    • The actual condition for checking if point is inside the squre can be either done by the method of comparing the sum of areas or even better the dot product of edges of squre and the vector from vertex to point.Reference
    • + 1 comment

      calculating the 3rd vertex is itself a difficult task

      • + 0 comments

        This tutorial section is very educational. 1 carat diamond engagement ring price Thanks for holding it. This section on circle and square is very much informative and helps the students to learn maths in a very interesting way. All the doubts can be discussed here and hence can be solved.