darwin_math

package
v0.0.0-...-a1aec39 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AlmostIntersect = 0.99
	Gravity         = 6.67430e-11
)

Variables

This section is empty.

Functions

func Add

func Add(l *proto.Vector3, r *proto.Vector3) *proto.Vector3

func CreateVector2

func CreateVector2(x float64, y float64) proto.Vector2

func CreateVector3

func CreateVector3(x float64, y float64, z float64) proto.Vector3

func CreateVector4

func CreateVector4(x float64, y float64, z float64, w float64) proto.Vector4

func Cross

func Cross(l *proto.Vector3, r *proto.Vector3) *proto.Vector3

func Distance

func Distance(l *proto.Vector3, r *proto.Vector3) float64

func Dot

func Dot(l *proto.Vector3, r *proto.Vector3) float64

func IsAlmostIntersecting

func IsAlmostIntersecting(p1 *proto.Physic, p2 *proto.Physic) bool

func IsEqualVector3

func IsEqualVector3(v1 *proto.Vector3, v2 *proto.Vector3) bool

func IsInColor

func IsInColor(test *proto.Vector3, colors []*proto.ColorParameter) bool

func IsIntersecting

func IsIntersecting(p1 *proto.Physic, p2 *proto.Physic) bool

func Length

func Length(vec3 *proto.Vector3) float64

func Minus

func Minus(l *proto.Vector3, r *proto.Vector3) *proto.Vector3

func Normalize

func Normalize(vec3 *proto.Vector3) *proto.Vector3

func ProjectOnPlane

func ProjectOnPlane(vec3 *proto.Vector3, normal *proto.Vector3) *proto.Vector3

func RadiusFromVolume

func RadiusFromVolume(volume float64) float64

func RandomNormalizeVec3

func RandomNormalizeVec3() *proto.Vector3

func RandomVec3

func RandomVec3() *proto.Vector3

func TimeSecondNow

func TimeSecondNow() float64

func Times

func Times(vec3 *proto.Vector3, val float64) *proto.Vector3

Types

This section is empty.

Jump to

Keyboard shortcuts

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