Skip to content
/ geo Public

A library for geometric shape recognition

License

Notifications You must be signed in to change notification settings

vocksel/geo

Repository files navigation

Geo

CI Docs

A library for analyzing 2D points to determine the geometric shape they represent.

A full shape recognition example

Usage

local points = { Vector2.new(x1, y1), Vector2.new(x2, y2), Vector2.new(x3, y3), ... }

if Geo.detectShape(points) == Geo.Shape.Line then
    print("The points represent a line")

    local orientation = Geo.detectOrientation(points)

    if orientation == Geo.Orientation.North then
        print("The line is pointing up")
    end
end

Installation

Installing the package is quick and easy whether you use a package manager like Wally or work directly in Studio.

Wally (Recommended)

Add the following to your wally.toml and run wally install to download the package.

[dependencies]
Geo = "vocksel/[email protected]

Make sure the resulting Packages folder is synced into your experience using a tool like Rojo.

Roblox Studio

  • Download a copy of the rbxm from the releases page under the Assets section.
  • Drag and drop the file into Roblox Studio to add it to your experience.

Documentation

You can find the Hue documentation here.

Contributing

See the contributing guide.

License

MIT License

About

A library for geometric shape recognition

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages