goclipper2

command module
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 2 Imported by: 0

README

goclipper2

golang bindings for Clipper2 - a polygon Clipping and Offsetting library (originally in C++, C# & Delphi)
Documentation:

I would gladly refer you to original documentation by AngusJohnson and ask to search for similar names.

Usage

Get library:

go get github.com/epit3d/goclipper2

Simple code:

package main

import (
	"log"

	"github.com/epit3d/goclipper2/goclipper2"
)

func main() {
	p := goclipper2.NewPath64()

	p.AddPoint(*goclipper2.NewPoint64(0, 0))

	log.Println(p)
}

go run main.go

If you do this outside this repo, you should copy lib directory to the root of application.

For developer:

If you want to dig into how everything is building, go here

Contribution

Feel free to create an issue or PR with your thoughts.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL