point2f

package
v0.0.0-...-5564bc9 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Point2fToPolar

func Point2fToPolar(p Point2f) (angle, radius float64)

Types

type Point2f

type Point2f struct {
	X, Y float64
}

func LerpPoint2f

func LerpPoint2f(p0, p1 Point2f, t float64) Point2f

func PolarToPoint2f

func PolarToPoint2f(angle, radius float64) Point2f

func Pt2f

func Pt2f(x, y float64) Point2f

Pt2f is shorthand for Point2f{X, Y}.

func (Point2f) Add

func (p Point2f) Add(q Point2f) Point2f

func (Point2f) DivScalar

func (p Point2f) DivScalar(scalar float64) Point2f

func (Point2f) MulScalar

func (p Point2f) MulScalar(scalar float64) Point2f

func (Point2f) Point

func (p Point2f) Point() image.Point

func (Point2f) SetPoint

func (p Point2f) SetPoint(q image.Point)

func (Point2f) Sub

func (p Point2f) Sub(q Point2f) Point2f

Jump to

Keyboard shortcuts

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