## Haversine formula to find distance between two points on a sphere

The Haversine formula calculates the shortest distance between two points on a sphere using their latitudes and longitudes measured along the surface. It is important… Read More »

## Program to find equation of a plane passing through 3 points

Given three points (x1, y1, z1), (x2, y2, z2), (x3, y3, z3). The task is to find the equation of the plane passing through these… Read More »

## Perpendicular distance between a point and a Line in 2 D

Given a point (x1, y1) and a line (ax + by + c = 0). The task is to find the perpendicular distance between the… Read More »

## Mirror of a point through a 3 D plane

Given a point(x, y, z) in 3-D and coefficients of the equation of plane, the task is to find the mirror image of that point… Read More »

## Program to determine the octant of the axial plane

Given 3 coordinates x, y and z, the task is to determine the octant of the axial plane. Examples: Input: 2, 3, 4 Output: Point… Read More »

## Shortest distance between a Line and a Point in a 3-D plane

Given a line passing through two points A and B and an arbitrary point C in a 3-D plane, the task is to find the… Read More »

## Program to find the Volume of a Triangular Prism

Given the length, width, and height of a triangular prism, the task is to find the volume of the triangular prism. Examples: Input: l =… Read More »

## Program to check congruency of two triangles

Given four arrays of 3 numbers each which represents sides and angles of two triangles. The task is to check if the two triangles are… Read More »

## Bresenham’s Algorithm for 3-D Line Drawing

Given two 3-D co-ordinates we need to find the points on the line joining them. All points have integer co-ordinates. Examples: Input : (-1, 1,… Read More »

## Chain Code for 2D Line

Chain code is a lossless compression technique used for representing an object in images. The co-ordinates of any continuous boundary of an object can be… Read More »

## Number of triangles in a plane if no more than two points are collinear

Given n points in a plane and no more than two points are collinear, the task is to count the number of triangles in a… Read More »

## Number of rectangles in a circle of radius R

Given a circular sheet of radius R and the task is to find the total number of rectangles with integral length and width that can… Read More »

## Program to calculate the Surface Area of a Triangular Prism

In mathematics, a triangular prism is a three-dimensional solid shape with two identical ends connected by equal parallel lines, and have 5 faces, 9 edges,… Read More »

## Program to check similarity of given two triangles

Given four array of 3 numbers each which represents sides and angles of two triangles. The task is to check if two triangles are similar… Read More »

## Number of squares of maximum area in a rectangle

Given a rectangle of sides m and n. Cut the rectangle into smaller identical pieces such that each piece is a square having maximum possible… Read More »