genpoint

package
v0.0.0-...-e8e586d Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateShapes

func GenerateShapes(count int) internal.Shapes

func GetCentralPolygonPointWithRadius

func GetCentralPolygonPointWithRadius(polygon []internal.Point, radius int) (internal.Point, int)

Types

type ByAngel

type ByAngel struct {
	Points    []internal.Point
	Center    internal.Point
	Distances []float64
}

func (ByAngel) Len

func (a ByAngel) Len() int

func (ByAngel) Less

func (a ByAngel) Less(i, j int) bool

func (ByAngel) Swap

func (a ByAngel) Swap(i, j int)

type GetPoint

type GetPoint interface {
	GeneratePoints(N int) []internal.Point
}

type GetPolygon

type GetPolygon interface {
	GeneratePolygon(N int) []internal.Point
}

type PolygonGenerator

type PolygonGenerator struct{}

func (*PolygonGenerator) GeneratePolygon

func (pg *PolygonGenerator) GeneratePolygon(N int) []internal.Point

func (*PolygonGenerator) GeneratePolygons

func (pg *PolygonGenerator) GeneratePolygons(N int) []internal.Polygon

type SimplePointGenerator

type SimplePointGenerator struct{}

func (*SimplePointGenerator) GeneratePoints

func (smg *SimplePointGenerator) GeneratePoints(N int) []internal.Point

GeneratePoints Задает N точек в окружности в пределах Московской области

Jump to

Keyboard shortcuts

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