tida.collision

Collision checker and collision points between forms.

Members

Functions

isCollide
bool isCollide(Shape!float first, Shape!float second, Vecf firstPos, Vecf secondPos)

A function to check the intersection of two shapes. It does not give an intersection point, it gives a state that informs if there is an intersection.

isPolygonAndCircle
bool isPolygonAndCircle(Vecf[] first, Vecf second, float r)

Check collision between polygon and circle.

isPolygonAndLine
bool isPolygonAndLine(Vecf[] first, Vecf[] second)

Checks collision between polygon and line.

isPolygonAndPoint
bool isPolygonAndPoint(Vecf[] first, Vecf second)

Checks collision between polygon and point.

isPolygonAndRect
bool isPolygonAndRect(Vecf[] first, Vecf[] second)

Check collision between polygon and rectangle.

isPolygonsCollision
bool isPolygonsCollision(Vecf[] first, Vecf[] second)

Checking the collision of two polygons.

lineCircleImpl
bool lineCircleImpl(Vecf[] a, Vecf circlePos, float circleRadius)

Checks if there is a collision between a line and a Circle.

lineLineImpl
bool lineLineImpl(Vecf[] first, Vecf[] second)

Checks if there is a collision between the lines.

lineRectImpl
bool lineRectImpl(Vecf[] a, Vecf[] b)

Checks if there is a collision between a line and a rectangle.

placeCircleCircleImpl
const(Vecf) placeCircleCircleImpl(Vecf fPos, float fRadius, Vecf sPos, float sRadius)

Gives the place of collision of a circle and a circle.

placeLineCircleImpl
const(Vecf) placeLineCircleImpl(Vecf[] line, Vecf circlePos, float circleRadius)

Gives the place of collision of a line and a circle.

placeLineLineImpl
const(Vecf) placeLineLineImpl(Vecf[] first, Vecf[] second)

Gives the place of collision of a line and a line.

placeLineRectImpl
const(Vecf) placeLineRectImpl(Vecf[] a, Vecf[] b)

Gives the place of collision of a line and a rectangle.

placePointCircleImpl
const(Vecf) placePointCircleImpl(Vecf point, Vecf circlePos, float circleRadius)

Gives the place of collision of a point and a circle.

placePointLineImpl
const(Vecf) placePointLineImpl(Vecf point, Vecf[] line)

Gives the place of collision of a line and a point.

placePointRectImpl
const(Vecf) placePointRectImpl(Vecf point, Vecf[] rectangle)

Gives the place of collision of a point and a rectangle.

placePolygonAndCircle
Vecf placePolygonAndCircle(Vecf[] first, Vecf second, float r)

The point of contact between the polygon and the circle.

placePolygonAndLine
Vecf placePolygonAndLine(Vecf[] first, Vecf[] second)

The point of contact between the polygon and the line.

placePolygonAndPoint
Vecf placePolygonAndPoint(Vecf[] first, Vecf second)

The point of contact between the polygon and the point.

placePolygonAndRect
Vecf placePolygonAndRect(Vecf[] first, Vecf[] second)

The point of contact between the polygon and the rectangle.

placePolygonsCollision
Vecf placePolygonsCollision(Vecf[] first, Vecf[] second)

The point of contact between the polygon and the polygon.

placeRectCircleImpl
const(Vecf) placeRectCircleImpl(Vecf[] a, Vecf circlePos, float circleRadius)

Gives the place of collision of a rectangle and a circle.

placeRectRectImpl
const(Vecf) placeRectRectImpl(Vecf[] a, Vecf[] b, bool isRecurse)

Gives the place of collision of a rectangle and a rectangle.

placeofTangents
const(Vecf) placeofTangents(Shape!float first, Shape!float second, Vecf firstPos, Vecf secondPos)

Finds the point of contact between two forms.

pointCircleImpl
bool pointCircleImpl(Vecf a, Vecf circlePos, float circleRadius)

Checks if there is a collision between a point and a Circle.

pointLineImpl
bool pointLineImpl(Vecf point, Vecf[] line)

Checks if there is a collision between a point and a line.

pointRectImpl
bool pointRectImpl(Vecf a, Vecf[] b)

Checks if there is a collision between a point and a rectange.

rectCircleImpl
bool rectCircleImpl(Vecf[] a, Vecf circlePos, float circleRadius)

Checks if there is a collision between a rectangle and a circle.

triangleLineImpl
bool triangleLineImpl(Vecf[3] a, Vecf[2] b)
Undocumented in source. Be warned that the author may not have intended to support it.
trianglePointImpl
bool trianglePointImpl(Vecf[3] a, Vecf b)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta

Authors

License