math2d

package
v0.0.0-...-ac0f134 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 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 Matrix

type Matrix = Matrix3x2

type Matrix3x2

type Matrix3x2 [3 * 2]float64

func (*Matrix3x2) InitIdendity

func (m *Matrix3x2) InitIdendity()

func (*Matrix3x2) InitReflectAxisX

func (m *Matrix3x2) InitReflectAxisX()

func (*Matrix3x2) InitReflectAxisY

func (m *Matrix3x2) InitReflectAxisY()

func (*Matrix3x2) InitRotate

func (m *Matrix3x2) InitRotate(angle float64)

func (*Matrix3x2) InitScale

func (m *Matrix3x2) InitScale(x, y float64)

func (*Matrix3x2) InitTranslate

func (m *Matrix3x2) InitTranslate(x, y float64)

func (*Matrix3x2) ReflectAxisX

func (m *Matrix3x2) ReflectAxisX()

func (*Matrix3x2) ReflectAxisY

func (m *Matrix3x2) ReflectAxisY()

func (*Matrix3x2) Rotate

func (m *Matrix3x2) Rotate(angle float64)

func (*Matrix3x2) Scale

func (m *Matrix3x2) Scale(x, y float64)

func (*Matrix3x2) TransformPoint

func (m *Matrix3x2) TransformPoint(x, y float64) (tx, ty float64)

func (*Matrix3x2) Translate

func (m *Matrix3x2) Translate(x, y float64)

type Matrix3x3

type Matrix3x3 [3 * 3]float64

func (*Matrix3x3) InitIdendity

func (m *Matrix3x3) InitIdendity()

func (*Matrix3x3) InitReflectAxisX

func (m *Matrix3x3) InitReflectAxisX()

func (*Matrix3x3) InitReflectAxisY

func (m *Matrix3x3) InitReflectAxisY()

func (*Matrix3x3) InitRotate

func (m *Matrix3x3) InitRotate(angle float64)

func (*Matrix3x3) InitScale

func (m *Matrix3x3) InitScale(x, y float64)

func (*Matrix3x3) InitTranslate

func (m *Matrix3x3) InitTranslate(x, y float64)

func (*Matrix3x3) Invert

func (m *Matrix3x3) Invert()

func (*Matrix3x3) ReflectAxisX

func (m *Matrix3x3) ReflectAxisX()

func (*Matrix3x3) ReflectAxisY

func (m *Matrix3x3) ReflectAxisY()

func (*Matrix3x3) Rotate

func (m *Matrix3x3) Rotate(angle float64)

func (*Matrix3x3) Scale

func (m *Matrix3x3) Scale(x, y float64)

func (*Matrix3x3) TransformPoint

func (m *Matrix3x3) TransformPoint(x, y float64) (tx, ty float64)

func (*Matrix3x3) Translate

func (m *Matrix3x3) Translate(x, y float64)

type Vector3

type Vector3 [3]float64

func Vector3XY

func Vector3XY(x, y float64) Vector3

func (Vector3) Norm

func (v Vector3) Norm() Vector3

func (Vector3) XY

func (v Vector3) XY() (x, y float64)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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