vector2

package
v0.0.0-...-7427233 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs(v xy.Vector2) xy.Vector2

func Add

func Add(v, with xy.Vector2) xy.Vector2

func Addf

func Addf(v xy.Vector2, with float64) xy.Vector2

func Angle

func Angle(v xy.Vector2) xy.Radians

func Aspect

func Aspect(v xy.Vector2) float64

func Ceil

func Ceil(v xy.Vector2) xy.Vector2

func Clamp

func Clamp(v xy.Vector2, min, max xy.Vector2) xy.Vector2

func Cross

func Cross(v, with xy.Vector2) float64

func Distance

func Distance(v, to xy.Vector2) float64

func DistanceSquared

func DistanceSquared(v, to xy.Vector2) float64

func Div

func Div(v, with xy.Vector2) xy.Vector2

func Divf

func Divf(v xy.Vector2, with float64) xy.Vector2

func Dot

func Dot(v, with xy.Vector2) float64

func Floor

func Floor(v xy.Vector2) xy.Vector2

func IsApproximatelyZero

func IsApproximatelyZero(v xy.Vector2) bool

func IsFinite

func IsFinite(v xy.Vector2) bool

func IsNormalized

func IsNormalized(v xy.Vector2) bool

func Length

func Length(v xy.Vector2) float64

func LengthSquared

func LengthSquared(v xy.Vector2) float64

func Lerp

func Lerp(from, to xy.Vector2, weight float64) xy.Vector2

func Mul

func Mul(v, with xy.Vector2) xy.Vector2

func Mulf

func Mulf(v xy.Vector2, with float64) xy.Vector2

func Neg

func Neg(v xy.Vector2) xy.Vector2

func New

func New(x, y float64) xy.Vector2

func Normalize

func Normalize(v xy.Vector2) xy.Vector2

func Round

func Round(v xy.Vector2) xy.Vector2

func Sign

func Sign(v xy.Vector2) xy.Vector2

func Sub

func Sub(v, with xy.Vector2) xy.Vector2

func Subf

func Subf(v xy.Vector2, with float64) xy.Vector2

func Transform

func Transform(v xy.Vector2, by xy.Transform2D) xy.Vector2

Types

This section is empty.

Jump to

Keyboard shortcuts

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