f32

package
v0.0.0-...-b8cd253 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChunkWidth = 32
)

Variables

This section is empty.

Functions

func Abs

func Abs(x float32) float32

func Cos

func Cos(x float32) float32

func Floor

func Floor(x float32) float32

func Max

func Max(a, b float32) float32

func Min

func Min(a, b float32) float32

func Mix

func Mix(a, b, factor float32) float32

func Noise2

func Noise2(x, y float32, octaves int, persistence, lacunarity float32) float32

func Noise3

func Noise3(x, y, z float32, octaves int, persistence, lacunarity float32) float32

func Radian

func Radian(angle float32) float32

func Round

func Round(x float32) float32

func Sin

func Sin(x float32) float32

Types

type Vec2

type Vec2 struct {
	X, Y float32
}

type Vec3

type Vec3 struct {
	X, Y, Z float32
}

func (Vec3) Back

func (v Vec3) Back() Vec3

func (Vec3) ChunkID

func (v Vec3) ChunkID() Vec3

func (Vec3) Down

func (v Vec3) Down() Vec3

func (Vec3) Front

func (v Vec3) Front() Vec3

func (Vec3) Left

func (v Vec3) Left() Vec3

func (Vec3) Right

func (v Vec3) Right() Vec3

func (Vec3) Up

func (v Vec3) Up() Vec3

type Vec4

type Vec4 struct {
	X, Y, Z, W float32
}

Jump to

Keyboard shortcuts

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