data

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Numeric

type Numeric interface {
	int | float32
}

type Point

type Point[T Numeric] struct {
	X T
	Y T
}

func NewPoint

func NewPoint[T Numeric](x, y T) Point[T]

func (Point[T]) Add

func (p Point[T]) Add(other Point[T]) Point[T]

func (Point[T]) Sub

func (p Point[T]) Sub(other Point[T]) Point[T]

Jump to

Keyboard shortcuts

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