vector

package module
v0.0.0-...-9e54f88 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Int

type Int int64

func IntAbs

func IntAbs(i Int) Int

type Vector

type Vector struct {
	X Int `json:"x,omitempty"`
	Y Int `json:"y,omitempty"`
}

func NewVector

func NewVector(val ...Int) *Vector

func NewVectorFrom

func NewVectorFrom(o *Vector) *Vector

func (*Vector) Abs

func (v *Vector) Abs() *Vector

func (*Vector) Clone

func (v *Vector) Clone() *Vector

func (*Vector) Distance

func (v *Vector) Distance(val ...Int) Int

func (*Vector) DistanceFrom

func (v *Vector) DistanceFrom(o *Vector) Int

func (*Vector) Equal

func (v *Vector) Equal(val ...Int) bool

func (*Vector) EqualTo

func (v *Vector) EqualTo(o *Vector) bool

func (*Vector) Great

func (v *Vector) Great(val ...Int) bool

func (*Vector) GreatThan

func (v *Vector) GreatThan(o *Vector) bool

func (*Vector) IsX

func (v *Vector) IsX(x Int) bool

func (*Vector) IsY

func (v *Vector) IsY(y Int) bool

func (*Vector) Less

func (v *Vector) Less(val ...Int) bool

func (*Vector) LessThan

func (v *Vector) LessThan(o *Vector) bool

func (*Vector) Negate

func (v *Vector) Negate() *Vector

func (*Vector) Set

func (v *Vector) Set(val ...Int) *Vector

func (*Vector) SetTo

func (v *Vector) SetTo(o *Vector) *Vector

func (*Vector) Translate

func (v *Vector) Translate(val ...Int) *Vector

func (*Vector) TranslateBy

func (v *Vector) TranslateBy(o *Vector) *Vector

func (*Vector) Zero

func (v *Vector) Zero() *Vector

Jump to

Keyboard shortcuts

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