Keyword: geometry

Showing 15 results
Circle Intersection

Circle Intersection

Fri May 02 2025 15:06:07 GMT+0100 (British Summer Time)

A simple method for testing if two 2D circles are colliding.

Line intersection

Line intersection

Fri May 02 2025 15:06:07 GMT+0100 (British Summer Time)

A simple method for testing if two lines cross one another on a 2D plane.

Point in Circle

Point in Circle

Fri May 02 2025 15:06:07 GMT+0100 (British Summer Time)

A simple method for testing if a 2D coordinate falls inside the area of a given circle.

Point in Rectangle

Point in Rectangle

Fri May 02 2025 15:06:07 GMT+0100 (British Summer Time)

A simple method for testing if a set of coordinates fall within the bounds of a given rectangle.

Point in Triangle

Point in Triangle

Fri May 02 2025 15:06:07 GMT+0100 (British Summer Time)

A method for determining if a coordinate falls within the bounds of a given Triangle on a 2D plane.

Points on Circumference

Points on Circumference

Fri May 02 2025 15:06:07 GMT+0100 (British Summer Time)

Find all the points that make the circumference of a circle on a 2D plane.

Points on Line

Points on Line

Fri May 02 2025 15:06:07 GMT+0100 (British Summer Time)

Find all the points a line between two coordinates in 2D space touches.

Rectangles Intersection

Rectangles Intersection

Fri May 02 2025 15:06:07 GMT+0100 (British Summer Time)

A simple method to test if two rectangles are colliding in 2D space.

Get Distance

Get Distance

Fri May 02 2025 15:06:07 GMT+0100 (British Summer Time)

Find the distance between two points when given their coordinates.

Angle between points

Angle between points

Fri May 02 2025 15:06:07 GMT+0100 (British Summer Time)

Method for easily finding the angle between 2 points in 2D space.

Point given Angle and Distance

Point given Angle and Distance

Fri May 02 2025 15:06:07 GMT+0100 (British Summer Time)

Method for plotting a point given a start point and an angle and distance.

Points on Arc Circumference

Points on Arc Circumference

Fri May 02 2025 15:06:07 GMT+0100 (British Summer Time)

Find all the points that fall on the circumference of an arc, or specific section of a circle.

Bresenhams Line Algorithm

Bresenhams Line Algorithm

Fri May 02 2025 15:06:07 GMT+0100 (British Summer Time)

Calculating the points used to create a line between 2 sets of coordinates in 2D space.

Plotting Regular Polygons

Plotting Regular Polygons

Fri May 02 2025 15:06:07 GMT+0100 (British Summer Time)

Programatically plotting regular polygons on a canvas or other drawing surface is surprisingly simple. Learn how to write a short function to generate Polygons in this tutorial.

Plotting Regular Stars

Plotting Regular Stars

Fri May 02 2025 15:06:07 GMT+0100 (British Summer Time)

Plotting regular stars is just as simple as plotting regular polygons, and in this tutorial we'll create a function to do so.