Geometric AlgorithmsLast Updated : 03 Aug, 2023ReadDiscussCoursesDSA for BeginnersLearn more about Geometric Algorithms in DSA Self Paced CoursePractice Problems on Geometric AlgorithmsWhat are Geometric Algorithms?In different areas of computer science such as robotics, data analysis, computer graphics, virtual reality and etc we need to deal with the geometric aspect or spatial data. The algorithms devised to deal with these types of data are known as geometric algorithms.Whar are some use cases of Geometric Algorithms:1. Data mining: It is very much useful in data mining. Finding the relations between two points are based on the usage of geometric algorithms.2. Simulation: For simulations of real-life objects we need to understand their geometry and reflect it properly. This is the aspect where geometric algorithms come in handy.3. Virtual Reality: The usage of these algorithms can be experienced in virtual reality. How to transfer the points and their relative spacing requires the usage of these algorithms.Topics:Pattern PrintingLinesTriangleRectangle | Square | CircleQuadilateral3D ObjectsPolygon & Convex HullProblems on Geometric AlgorithmPattern Printing:Print lower triangle with alternate ‘*’ and ‘#’Print the pattern 1*2*5*6 –3*4Python Program to print the pattern ‘G’Pascal’s TriangleProgram to print pyramid patternProgram to print the diamond shapeHour-glass PatternProgram to print V and inverted-V patternProgram to print hollow pyramid, diamond pattern and their modificationsCode to Generate the Map of India (With Explanation)Lines:Program to find the mid-point of a lineSection formula (Point that divides a line in given ratio)Program to find slope of a lineProgram to find line passing through 2 PointsProgram for Point of Intersection of Two LinesReflection of a point about a line in C++Find points at a given distance on a line of given slopeGiven n line segments, find if any two segments intersectCount maximum points on same lineMinimum lines to cover all pointsTriangle:Check whether triangle is valid or not if sides are givenCheck whether a given point lies inside a triangle or notProgram to find area of a triangleCheck if right triangle possible from given area and hypotenuseCount Integral points inside a TriangleFind all angles of a given triangleProgram to find Circumcenter of a TriangleNumber of Triangles that can be formed given a set of lines in Euclidean PlaneProgram to calculate area of Circumcircle of an Equilateral TriangleProgram to find third side of triangle using law of cosinesRectangle | Square | Circle:Check whether a given point lies inside a rectangle or notProgram for Area And Perimeter Of RectangleFind if two rectangles overlapHow to check if given four points form a squareNumber of rectangles in N*M gridProgram to find Circumference of a CircleProgram to find area of a circleCheck whether a point exists in circle sector or notCheck if two given circles touch or intersect each otherProgram to find area of a Circular SegmentCheck if a line touches or intersects a circleArea of a Circumscribed Circle of a SquareFind minimum radius such that atleast k point lie inside the circleAngular Sweep (Maximum points that can be enclosed in a circle of given radius)Quadrilateral:Number of parallelograms when n horizontal parallel lines intersect m vertical parallellinesProgram for Circumference of a ParallelogramProgram to calculate area and perimeter of TrapeziumProgram to find area of a TrapezoidFind all possible coordinates of parallelogramMaximum area of quadrilateralCheck whether four points make a parallelogramFind the Missing Point of Parallelogram3D Objects:Find the perimeter of a cylinderProgram for Volume and Surface area of Frustum of ConeProgram to calculate volume of EllipsoidProgram for volume of PyramidCalculate volume and surface area of a coneCalculate Volume and Surface area Of SphereProgram for Volume and Surface Area of CuboidProgram for Volume and Surface Area of CubePythagorean QuadrupleLS3/NS3 sphere generation algorithm and its implementationPolygon and Convex Hull:How to check if a given point lies inside or outside a polygon?Area of a polygon with given n ordered verticesTangents between two Convex PolygonsFind number of diagonals in n sided convex polygonConvex Hull using Jarvis’ Algorithm or WrappingQuickhull Algorithm for Convex HullDeleting points from Convex HullMinimum area of a Polygon with three points givenStandard Problems on Geometric Algorithm:Finding the vertex, focus and directrix of a parabolaFind Simple Closed Path for a given set of pointsNumber of Integral Points between Two PointsOptimum location of point to minimize total distanceFind perimeter of shapes formed with 1s in binary matrixDraw geometric shapes on images using OpenCVFind if it’s possible to rotate the page by an angle or notEquable ShapesQuick Links :Learn Data Structure and Algorithms | DSA Tutorial‘Practice Problems’ on Geometric AlgorithmsRecent Articles on Geometric AlgorithmsIf you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to review-team@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.