shape

package
v0.0.0-...-8e5a076 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Frustum

type Frustum struct {
	Front, Back, Left, Right, Top, Bottom Plane
}

func FrustumFromMatrix

func FrustumFromMatrix(vp mat4.T) Frustum

func (*Frustum) IntersectsSphere

func (f *Frustum) IntersectsSphere(s *Sphere) bool

type Plane

type Plane struct {
	Normal   vec3.T
	Distance float32
}

func (*Plane) DistanceToPoint

func (p *Plane) DistanceToPoint(point vec3.T) float32

type Sphere

type Sphere struct {
	Center vec3.T
	Radius float32
}

func (*Sphere) IntersectsSphere

func (s *Sphere) IntersectsSphere(other *Sphere) bool

Jump to

Keyboard shortcuts

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