f32

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: MIT, Unlicense Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Affine2D

type Affine2D struct {
	// contains filtered or unexported fields
}

func AffineId

func AffineId() Affine2D

func NewAffine2D

func NewAffine2D(sx, hx, ox, hy, sy, oy float32) Affine2D

func (Affine2D) Elems

func (a Affine2D) Elems() (sx, hx, ox, hy, sy, oy float32)

func (Affine2D) Invert

func (a Affine2D) Invert() Affine2D

func (Affine2D) Mul

func (A Affine2D) Mul(B Affine2D) (r Affine2D)

func (Affine2D) Offset

func (a Affine2D) Offset(offset Point) Affine2D

func (Affine2D) Rotate

func (a Affine2D) Rotate(origin Point, radians float32) Affine2D

func (Affine2D) Scale

func (a Affine2D) Scale(origin, factor Point) Affine2D

func (Affine2D) Shear

func (a Affine2D) Shear(origin Point, radiansX, radiansY float32) Affine2D

func (Affine2D) Split

func (a Affine2D) Split() (srs Affine2D, offset Point)

func (Affine2D) String

func (a Affine2D) String() string

func (Affine2D) Transform

func (a Affine2D) Transform(p Point) Point

type Point

type Point struct {
	X, Y float32
}

func Pt

func Pt(x, y float32) Point

func (Point) Add

func (p Point) Add(p2 Point) Point

func (Point) Div

func (p Point) Div(s float32) Point

func (Point) Mul

func (p Point) Mul(s float32) Point

func (Point) Round

func (p Point) Round() image.Point

func (Point) String

func (p Point) String() string

func (Point) Sub

func (p Point) Sub(p2 Point) Point

Jump to

Keyboard shortcuts

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