cmath

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: AGPL-3.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Distance

func Distance(x, y *Vec3) float64

func DistanceSqr added in v0.3.0

func DistanceSqr(x, y *Vec3) float64

func MNaN32

func MNaN32() float32

Types

type Vec3

type Vec3 struct {
	X float32 `json:"x"`
	Y float32 `json:"y"`
	Z float32 `json:"z"`
}

func DefaultPosition

func DefaultPosition() Vec3

DefaultPosition FIXME: Magic numbers ?

func MNan32Vec3

func MNan32Vec3() Vec3

func (*Vec3) Plus

func (v *Vec3) Plus(v2 Vec3)

func (Vec3) ToVec3f64

func (v Vec3) ToVec3f64() Vec3f64

type Vec3f64

type Vec3f64 struct {
	X float64 `json:"x"`
	Y float64 `json:"y"`
	Z float64 `json:"z"`
}

func (Vec3f64) ToVec3

func (v Vec3f64) ToVec3() Vec3

Jump to

Keyboard shortcuts

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