Keyword: function

Showing 16 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.

Binary Tree maze generation in Javascript

Binary Tree maze generation in Javascript

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

A method for generating Binary Tree mazes in Javascript.

Recursive Backtracking mazes in Javascript

Recursive Backtracking mazes in Javascript

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

A method for generating Recursive Backtracking mazes in Javascript.

Growing tree maze algorithm in Javascript

Growing tree maze algorithm in Javascript

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

A method for generating lovely mazes in Javascript using the growing tree algorithm.

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.