mathHelper

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBezierPoints

func GetBezierPoints(dots []map[string]float64, amount int) []map[string]float64

*

  • @func: GetBezierPoints 获取贝塞尔曲线上的所有规定数量的点
  • @author Wiidz
  • @date 2019-11-16

func GetInsideDots

func GetInsideDots(dots1 map[float64]map[string]float64, dots2 map[float64]map[string]float64) []map[string]float64

*

  • @func: GetInsideDots 获取两组点构成的线,包围区域中间的点
  • @author Wiidz
  • @date 2019-11-16

func GetIntergers

func GetIntergers(border1 float64, border2 float64, narrow_range float64, amount float64) []float64

*

  • @func: GetIntergers 获取两个数之间指定数量的等分点
  • @author Wiidz
  • @date 2019-11-16

func GetNearestIntXDots

func GetNearestIntXDots(dots []map[string]float64) map[float64]map[string]float64

*

  • @func: GetNearestIntXDots 获取一组点中最接近整数x的点
  • @author Wiidz
  • @date 2019-11-16

func GetRandomInt

func GetRandomInt(min, max int) (num int)

*

  • @func: GetRandomInt 获取范围内的int随机数
  • @author Wiidz
  • @date 2019-11-16

func Keep

func Keep(number float64, amount int) float64

func MatrixTransform

func MatrixTransform(data []float64, matrix [][]float64) []float64

*

  • @func: MatrixTransform 矩阵变换
  • @author Wiidz
  • @date 2019-11-16

Types

This section is empty.

Jump to

Keyboard shortcuts

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