mtransform

package module
v0.0.0-...-60c8c35 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2019 License: MIT Imports: 1 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transform

type Transform [3][3]float64

func Identity

func Identity() Transform

func MultiplyTransforms

func MultiplyTransforms(a Transform, b Transform) Transform

func NewTransform

func NewTransform() *Transform

func (*Transform) Apply

func (t *Transform) Apply(x float64, y float64) (float64, float64)

func (*Transform) MultiplyWith

func (a *Transform) MultiplyWith(b Transform)

func (*Transform) RotateOrigin

func (t *Transform) RotateOrigin(angle float64)

func (*Transform) RotatePoint

func (t *Transform) RotatePoint(angle float64, x float64, y float64)

func (*Transform) Scale

func (t *Transform) Scale(x float64, y float64)

func (*Transform) SkewX

func (t *Transform) SkewX(angle float64)

func (*Transform) SkewY

func (t *Transform) SkewY(angle float64)

func (*Transform) Translate

func (t *Transform) Translate(x float64, y float64)

Jump to

Keyboard shortcuts

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