math

package
v0.0.0-...-d361f56 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Distance

func Distance(a, b Vector2D) float64

Distance returns Euclidean distance between two Vectors

func MinUI

func MinUI(x uint, y uint) uint

func RadToDeg

func RadToDeg(v float64) float64

Types

type Vector2D

type Vector2D struct {
	X float64
	Y float64
}

Vector2D represents a two-dimensional vector

type Vector3D

type Vector3D struct {
	X float64
	Y float64
	Z float64
}

Vector3D represents a three-dimensional vector

Jump to

Keyboard shortcuts

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