mathHelper

package
v1.5.95 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 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

GetBezierPoints 获取贝塞尔曲线上的所有规定数量的点

func GetInsideDots

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

GetInsideDots 获取两组点构成的线,包围区域中间的点

func GetIntergers

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

GetIntergers 获取两个数之间指定数量的等分点

func GetNearestIntXDots

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

GetNearestIntXDots 获取一组点中最接近整数x的点

func GetRandomFloat64 added in v1.5.6

func GetRandomFloat64() (num float64)

GetRandomFloat64 获取随机浮点

func GetRandomInt

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

GetRandomInt 获取范围内的int随机数

func Keep

func Keep(number float64, amount int) float64

Keep 保留几位小数

func MatrixTransform

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

MatrixTransform 矩阵变换

Types

This section is empty.

Jump to

Keyboard shortcuts

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