polygon

package
v0.0.0-...-59843aa Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Polygon

type Polygon struct {
	// contains filtered or unexported fields
}

多边形

func NewPolygon

func NewPolygon(engine *g2d.Engine, point []g2d.Point) (polygon Polygon)

新建

func (*Polygon) Draw

func (p *Polygon) Draw()

渲染

func (*Polygon) GetColor

func (p *Polygon) GetColor() string

获取颜色

func (*Polygon) Point

func (p *Polygon) Point(x, y int) bool

判断点是否在多边形内

func (*Polygon) SetColor

func (p *Polygon) SetColor(str string)

设置颜色

Jump to

Keyboard shortcuts

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