A library for analyzing 2D points to determine the geometric shape they represent.
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
endInstalling the package is quick and easy whether you use a package manager like Wally or work directly in Studio.
Add the following to your wally.toml and run wally install to download the package.
[dependencies]
Geo = "vocksel/geo@1.0.1Make sure the resulting Packages folder is synced into your experience using a tool like Rojo.
- 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.
You can find the Hue documentation here.
See the contributing guide.
