basic

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 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 Base

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

Base used only for internal purposes Base have to be initialized with MakeBase function

func MakeBase

func MakeBase() Base

MakeBase used only for internal purposes

func (*Base) GetID

func (b *Base) GetID() IDType

func (*Base) GetName

func (b *Base) GetName() string

func (*Base) SetName

func (b *Base) SetName(n string)

type BaseInterface

type BaseInterface interface {
	GetID() IDType
	GetName() string
	SetName(string)
}

BaseInterface used only for internal purposes

type IDType

type IDType = uint64

type Point

type Point struct {
	X float32
	Y float32
}

type Size

type Size struct {
	Height float32
	Width  float32
}

type Vector

type Vector struct {
	From Point
	To   Point
}

Jump to

Keyboard shortcuts

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