fix64

package
v0.0.0-...-bbb78ca Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LutSize   = halfPi
	FixZero   = Fix64(0)
	FixOne    = Fix64(one)
	FixPi     = Fix64(pi)
	FixPi2    = Fix64(pi2)
	FixHalfPi = Fix64(halfPi)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Fix64

type Fix64 int64

func NewFix64

func NewFix64[T constraints.Integer | constraints.Float](val T) Fix64

func (Fix64) Abs

func (f Fix64) Abs() Fix64

func (Fix64) Add

func (f Fix64) Add(val Fix64) Fix64

func (Fix64) Ceil

func (f Fix64) Ceil() int64

func (Fix64) Cos

func (f Fix64) Cos() Fix64

func (Fix64) Div

func (f Fix64) Div(val Fix64) Fix64

func (Fix64) Div1

func (f Fix64) Div1(val Fix64) Fix64

func (Fix64) Float3

func (f Fix64) Float3() (float64, error)

func (Fix64) Float32

func (f Fix64) Float32() float32

func (Fix64) Float64

func (f Fix64) Float64() float64

func (Fix64) Floor

func (f Fix64) Floor() int64

func (Fix64) GetHashCode

func (f Fix64) GetHashCode() int64

func (Fix64) Int

func (f Fix64) Int() int

func (Fix64) Int32

func (f Fix64) Int32() int32

func (Fix64) Int64

func (f Fix64) Int64() int64

func (Fix64) Mul

func (f Fix64) Mul(y Fix64) Fix64

func (Fix64) Mul1

func (f Fix64) Mul1(val Fix64) Fix64

func (Fix64) Round

func (f Fix64) Round() int64

func (Fix64) Sin

func (f Fix64) Sin() Fix64

func (Fix64) Sqrt

func (f Fix64) Sqrt() Fix64

Sqrt 平方根 numberOfIterations 影响影响计算结果,课调整

func (Fix64) String

func (f Fix64) String() string

func (Fix64) Sub

func (f Fix64) Sub(val Fix64) Fix64

func (Fix64) Tan

func (f Fix64) Tan() Fix64

type Numeric

type Numeric interface {
	constraints.Integer | constraints.Float
}

Jump to

Keyboard shortcuts

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