maths

package
v0.0.0-...-9927e17 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bounds

type Bounds struct {
	X, Y int
	W, H int
}

func (Bounds) IsPointInBounds

func (b Bounds) IsPointInBounds(x, y int) bool

type Vector2

type Vector2 struct {
	X, Y float32
}

func (*Vector2) Add

func (v *Vector2) Add(other *Vector2) *Vector2

func (*Vector2) DivScalar

func (v *Vector2) DivScalar(scalar float32) *Vector2

func (*Vector2) Mul

func (v *Vector2) Mul(other *Vector2) *Vector2

func (*Vector2) MulScalar

func (v *Vector2) MulScalar(scalar float32) *Vector2

func (*Vector2) Sub

func (v *Vector2) Sub(other *Vector2) *Vector2

Jump to

Keyboard shortcuts

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