objects

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

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FnvPrime = 1099511628211
)

Variables

This section is empty.

Functions

func FnvHash

func FnvHash(s []byte) (h uint64)

FnvHash is used by our FastHash functions, and implements the FNV hash created by Glenn Fowler, Landon Curt Noll, and Phong Vo. See http://isthe.com/chongo/tech/comp/fnv/.

Types

type ColorLine

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

func NewColorLine

func NewColorLine(x1, y1, x2, y2 int64, color color.RGBA) ColorLine

func (ColorLine) Hash

func (cl ColorLine) Hash() uint64

func (ColorLine) Overlaps

func (cl ColorLine) Overlaps(r tdqt.Rectangle) (bool, bool)

func (ColorLine) String

func (cl ColorLine) String() string

type ColorPoint

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

func NewColorPoint

func NewColorPoint(x, y int64, color color.RGBA) ColorPoint

func (ColorPoint) Hash

func (cp ColorPoint) Hash() uint64

func (ColorPoint) Overlaps

func (cp ColorPoint) Overlaps(r tdqt.Rectangle) (bool, bool)

func (ColorPoint) String

func (cp ColorPoint) String() string

Jump to

Keyboard shortcuts

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