# Useful geometry methods

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

1 to 10 of 15 results
«12» ### Plotting Regular Stars

Beginner 10 months 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 10 months 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 3 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 3 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 3 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 3 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 3 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 3 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 3 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 3 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
1 to 10 of 15 results
«12»