shape

package
v0.0.0-...-4db4b9c Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AABox

type AABox struct {
	Position   math.Vec3
	HalfWidth  float32
	HalfHeight float32
	HalfDepth  float32
}

func (*AABox) BottomLeftBackCorner

func (b *AABox) BottomLeftBackCorner() math.Vec3

func (*AABox) BottomLeftFrontCorner

func (b *AABox) BottomLeftFrontCorner() math.Vec3

func (*AABox) BottomRightBackCorner

func (b *AABox) BottomRightBackCorner() math.Vec3

func (*AABox) BottomRightFrontCorner

func (b *AABox) BottomRightFrontCorner() math.Vec3

func (*AABox) ContainsPoint

func (b *AABox) ContainsPoint(point math.Vec3) bool

func (*AABox) Depth

func (b *AABox) Depth() float32

func (*AABox) Height

func (b *AABox) Height() float32

func (*AABox) TopLeftBackCorner

func (b *AABox) TopLeftBackCorner() math.Vec3

func (*AABox) TopLeftFrontCorner

func (b *AABox) TopLeftFrontCorner() math.Vec3

func (*AABox) TopRightBackCorner

func (b *AABox) TopRightBackCorner() math.Vec3

func (*AABox) TopRightFrontCorner

func (b *AABox) TopRightFrontCorner() math.Vec3

func (*AABox) Width

func (b *AABox) Width() float32

type Sphere

type Sphere struct {
	Position math.Vec3
	Radius   float32
}

func (*Sphere) ContainsPoint

func (s *Sphere) ContainsPoint(point math.Vec3) bool

func (*Sphere) Diameter

func (s *Sphere) Diameter() float32

type Triangle

type Triangle struct {
	A math.Vec3
	B math.Vec3
	C math.Vec3
}

Jump to

Keyboard shortcuts

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