# Useful geometry methods

Some methods are used again and again in game development - we present some of these useful functions for your usage.

### Plotting Regular Stars

Beginner 1 years ago (11:18:42am Tue 17th Sep, 2019)Plotting regular stars is just as simple as plotting regular polygons, and in this tutorial we'll create a function to do so.

Javascript Canvas Geometry Graphics### Plotting Regular Polygons

Beginner 1 years ago (10:51:38am Tue 17th Sep, 2019)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.

Javascript Canvas Geometry Graphics### Bresenhams Line Algorithm

Intermediate 4 years ago (04:00:57pm Sat 4th Feb, 2017)Calculating the points used to create a line between 2 sets of coordinates in 2D space.

Javascript Function Geometry### Points on Arc Circumference

Intermediate 4 years ago (04:30:08pm Mon 30th Jan, 2017)Find all the points that fall on the circumference of an arc, or specific section of a circle.

Javascript Function Geometry### Point given Angle and Distance

Intermediate 4 years ago (08:12:26am Sun 29th Jan, 2017)Method for plotting a point given a start point and an angle and distance.

Javascript Function Geometry### Angle between points

Intermediate 4 years ago (08:03:48am Sun 29th Jan, 2017)Method for easily finding the angle between 2 points in 2D space.

Javascript Function Geometry### Get Distance

Intermediate 4 years ago (02:10:45pm Wed 25th Jan, 2017)Find the distance between two points when given their coordinates.

Javascript Function Geometry### Rectangles Intersection

Intermediate 4 years ago (04:18:01pm Tue 24th Jan, 2017)A simple method to test if two rectangles are colliding in 2D space.

Javascript Function Geometry### Points on Line

Intermediate 4 years ago (04:13:03pm Tue 24th Jan, 2017)Find all the points a line between two coordinates in 2D space touches.

Javascript Function Geometry### Points on Circumference

Intermediate 4 years ago (04:07:37pm Tue 24th Jan, 2017)Find all the points that make the circumference of a circle on a 2D plane.

Javascript Function Geometry