geometry

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Degree2Radian

func Degree2Radian(degree float64) float64

func Radian2Degree

func Radian2Degree(radian float64) float64

Types

type Bezier

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

func NewBezier

func NewBezier(points []Point, length float64) *Bezier

func (Bezier) Points

func (b Bezier) Points() []Point

func (Bezier) Radians

func (b Bezier) Radians() []float64

type Matrix

type Matrix [2][2]float64

func NewMatrix

func NewMatrix(v00, v01, v10, v11 float64) Matrix

func Rotate

func Rotate(radian float64) Matrix

func (Matrix) Mul

func (m Matrix) Mul(m2 Matrix) Matrix

func (Matrix) String

func (m Matrix) String() string

type Point

type Point complex128

func Float

func Float(f float64) Point

func P

func P(x, y float64) Point

func (Point) Dist

func (p Point) Dist(p2 Point) float64

func (Point) Len

func (p Point) Len() float64

func (Point) Radian

func (p Point) Radian() float64

func (Point) Square

func (p Point) Square() float64

func (Point) SquareTo

func (p Point) SquareTo(p2 Point) float64

func (Point) String

func (p Point) String() string

func (Point) X

func (p Point) X() float64

func (Point) Y

func (p Point) Y() float64

Jump to

Keyboard shortcuts

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