Documentation
¶
Index ¶
- func Abs[T Ordinary](v T) T
- func LastItem[T any](slice []T) T
- func Max[T Ordinary](a, b T) T
- func Min[T Ordinary](a, b T) T
- func Must(err error)
- func ParseInts(str string) []int
- func ReadAllInput() []string
- func ReadAllInputFromFile(name string) []string
- func RemoveLastItem[T any](slice *[]T) T
- func StrToInt(str string) int
- type Ordinary
- type Vector2
- type Vector3
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadAllInput ¶
func ReadAllInput() []string
func ReadAllInputFromFile ¶
func RemoveLastItem ¶
func RemoveLastItem[T any](slice *[]T) T
Types ¶
type Vector2 ¶
func NewVector2 ¶
func (Vector2) ManhattanDst ¶
func (Vector2) RotateLeft ¶
RotateLeft rotates the vector to the left (left-handed system)
func (Vector2) RotateRight ¶
RotateRight rotates the vector to the right (left-handed system)
Click to show internal directories.
Click to hide internal directories.