gpoly

package module
v0.0.0-...-ecc0fe0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CGPolyDiff

func CGPolyDiff(pa1, pa2, res int)

func CGPolyInter

func CGPolyInter(pa1, pa2, res int)

func CGPolyUnion

func CGPolyUnion(pa1, pa2, res int)

func PolyAreaCut

func PolyAreaCut(pa1 PolyArea, pa2 PolyArea) (diff PolyArea, inter PolyArea)

Types

type Bound

type Bound []Point

type Point

type Point []float64

type Poly

type Poly []Bound

type PolyArea

type PolyArea []Poly

func GetCGPoly

func GetCGPoly(id int) PolyArea

func (PolyArea) CalBoundingBox

func (pa PolyArea) CalBoundingBox() (pmin, pmax []float64)

func (PolyArea) Draw

func (a PolyArea) Draw(fout *os.File, is_hidden bool)

func (PolyArea) Print

func (pa PolyArea) Print(fout_name string)

func (PolyArea) SetCGPoly

func (pa PolyArea) SetCGPoly(id int)

Jump to

Keyboard shortcuts

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