rect

package
v0.0.0-...-8d3c4b6 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 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 Solution

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

Solution is the base struct.

func Constructor

func Constructor(rects [][]int) *Solution

Constructor creates a solution based on the rects

func (*Solution) Pick

func (s *Solution) Pick() []int

Pick pick a random position based on the weight of the rectangles

Jump to

Keyboard shortcuts

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