Skip to content

Latest commit

 

History

History
75 lines (37 loc) · 2.83 KB

readme.md

File metadata and controls

75 lines (37 loc) · 2.83 KB

Jitpack

AIK

AIK is yet another one AI library for multi-platform Kotlin (primarily for JVM).

AI

It is planned that this will include the pathfinding algorithms. Work on them will begin later :)

☐ Path finding for an open map

☐ Path finding for an partially open map

☐ Path finding for a limited range of movements

Geometry

AIK Geometry is a 2D Euclidean geometry library.

Initially forked from Korma, I found their hierarchy quite inconvenient and decided to make it convenient for my goals.

All coordinates are stored as Double, so for geometric operations, the approximation with the Epsillon value is used.

For some operations, objects with integer points will be declared.

Planned geometric shapes and geometric operations

☐ - TODO, [T] - need testing, ☑ - done

I chose the geometric shapes that I used and the most popular in my opinion from the wiki list.

[T] Point. Also it is Vector1D

[T] Line

[T] Polyline

[T] Ray - half-open directed line segment

[T] LineSegment - closed line segment. Also it is Vector2D

[T] Triangle (topics)

[T] Rectangle

Square (topics)

Parallelogram

Trapezoid

[T] Polygon (topics) - simple convex polygons

Vertex

☐ Triangle Vertex - vertex with additional information about the triangle

[T] Circle

Circular sector

Circular segment

Ring

Ellipse

Oval

Rhombus

Kite