test

package
v0.0.0-...-20810c9 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 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 Attr

type Attr[A any] interface {
	Add(other A)
	Adds(other A, scale float32)
	Scale(amount float32)
	Get() A
}

type BaseAttr

type BaseAttr[A any] struct{}

func (*BaseAttr[A]) Add

func (a *BaseAttr[A]) Add(other A)

func (*BaseAttr[A]) Adds

func (a *BaseAttr[A]) Adds(other A, scale float32)

func (BaseAttr[A]) Get

func (a BaseAttr[A]) Get() A

func (*BaseAttr[A]) Scale

func (a *BaseAttr[A]) Scale(amount float32)

type Vec2

type Vec2 struct {
	BaseAttr[Vec2]
	X float32
	Y float32
}

func (*Vec2) Adds

func (v *Vec2) Adds(other Vec2, scale float32)

func (Vec2) Get

func (v Vec2) Get() Vec2

func (Vec2) String

func (a Vec2) String() string

Jump to

Keyboard shortcuts

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