vec2

package
v0.0.0-...-e0df81a Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Type

type Type struct {
	X, Y float32
}

func All

func All(number float32) Type

func New

func New(x, y float32) Type

func Zero

func Zero() Type

func (Type) ABS

func (org Type) ABS() Type

*Absolut

func (Type) Add

func (org Type) Add(vecs ...Type) Type

*Addition

func (Type) Cross

func (org Type) Cross(other Type) Type

*Cross product

func (Type) Div

func (org Type) Div(vecs ...Type) Type

*Divition

func (Type) Dot

func (org Type) Dot(other Type) float32

*Dot product

func (Type) Length

func (org Type) Length() float32

*Length

func (Type) Mul

func (org Type) Mul(vecs ...Type) Type

*Multiplication

func (Type) Neg

func (org Type) Neg() Type

*Negativ

func (Type) Norm

func (org Type) Norm() Type

*Normalize

func (Type) Scale

func (org Type) Scale(scalar float32) Type

*Scale

func (Type) Sub

func (org Type) Sub(vecs ...Type) Type

*Subtraction

Jump to

Keyboard shortcuts

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