geometry

package
v0.0.0-...-48e9ae6 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2020 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateNormals

func CalculateNormals(indices math32.ArrayU32, positions, normals math32.ArrayF32) math32.ArrayF32

func NewRibbon

func NewRibbon(paths [][]math32.Vector3, close bool) *geometry.Geometry

func NewTube

func NewTube(path []math32.Vector3, radius float32, radialSegments int, close bool) *geometry.Geometry

Types

type Box

type Box struct {
	// contains filtered or unexported fields
}

func (*Box) Cleanup

func (t *Box) Cleanup(a *app.App)

Cleanup is called once at the end of the demo.

func (*Box) Start

func (t *Box) Start(a *app.App)

Start is called once at the start of the demo.

func (*Box) Update

func (t *Box) Update(a *app.App, deltaTime time.Duration)

Update is called every frame.

type ConeCylinder

type ConeCylinder struct {
	// contains filtered or unexported fields
}

func (*ConeCylinder) Cleanup

func (t *ConeCylinder) Cleanup(a *app.App)

Cleanup is called once at the end of the demo.

func (*ConeCylinder) Start

func (t *ConeCylinder) Start(a *app.App)

Start is called once at the start of the demo.

func (*ConeCylinder) Update

func (t *ConeCylinder) Update(a *app.App, deltaTime time.Duration)

Update is called every frame.

type Disk

type Disk struct {
	// contains filtered or unexported fields
}

func (*Disk) Cleanup

func (t *Disk) Cleanup(a *app.App)

Cleanup is called once at the end of the demo.

func (*Disk) Start

func (t *Disk) Start(a *app.App)

Start is called once at the start of the demo.

func (*Disk) Update

func (t *Disk) Update(a *app.App, deltaTime time.Duration)

Update is called every frame.

type LineStrip

type LineStrip struct{}

func (*LineStrip) Cleanup

func (t *LineStrip) Cleanup(a *app.App)

Cleanup is called once at the end of the demo.

func (*LineStrip) Start

func (t *LineStrip) Start(a *app.App)

Start is called once at the start of the demo.

func (*LineStrip) Update

func (t *LineStrip) Update(a *app.App, deltaTime time.Duration)

Update is called every frame.

type Lines

type Lines struct{}

func (*Lines) Cleanup

func (t *Lines) Cleanup(a *app.App)

Cleanup is called once at the end of the demo.

func (*Lines) Start

func (t *Lines) Start(a *app.App)

Start is called once at the start of the demo.

func (*Lines) Update

func (t *Lines) Update(a *app.App, deltaTime time.Duration)

Update is called every frame.

type Plane

type Plane struct {
	// contains filtered or unexported fields
}

func (*Plane) Cleanup

func (t *Plane) Cleanup(a *app.App)

Cleanup is called once at the end of the demo.

func (*Plane) Start

func (t *Plane) Start(a *app.App)

Start is called once at the start of the demo.

func (*Plane) Update

func (t *Plane) Update(a *app.App, deltaTime time.Duration)

Update is called every frame.

type Points

type Points struct{}

func (*Points) Cleanup

func (t *Points) Cleanup(a *app.App)

Cleanup is called once at the end of the demo.

func (*Points) Start

func (t *Points) Start(a *app.App)

Start is called once at the start of the demo.

func (*Points) Update

func (t *Points) Update(a *app.App, deltaTime time.Duration)

Update is called every frame.

type Sphere

type Sphere struct {
	// contains filtered or unexported fields
}

func (*Sphere) Cleanup

func (t *Sphere) Cleanup(a *app.App)

Cleanup is called once at the end of the demo.

func (*Sphere) Start

func (t *Sphere) Start(a *app.App)

Start is called once at the start of the demo.

func (*Sphere) Update

func (t *Sphere) Update(a *app.App, deltaTime time.Duration)

Update is called every frame.

type Sprite

type Sprite struct {
	// contains filtered or unexported fields
}

func (*Sprite) Cleanup

func (t *Sprite) Cleanup(a *app.App)

Cleanup is called once at the end of the demo.

func (*Sprite) Start

func (t *Sprite) Start(a *app.App)

Start is called once at the start of the demo.

func (*Sprite) Update

func (t *Sprite) Update(a *app.App, deltaTime time.Duration)

Update is called every frame.

type Torus

type Torus struct {
	// contains filtered or unexported fields
}

func (*Torus) Cleanup

func (t *Torus) Cleanup(a *app.App)

Cleanup is called once at the end of the demo.

func (*Torus) Start

func (t *Torus) Start(a *app.App)

Start is called once at the start of the demo.

func (*Torus) Update

func (t *Torus) Update(a *app.App, deltaTime time.Duration)

Update is called every frame.

type Tube

type Tube struct {
	// contains filtered or unexported fields
}

func (*Tube) Cleanup

func (t *Tube) Cleanup(a *app.App)

Cleanup is called once at the end of the demo.

func (*Tube) Start

func (t *Tube) Start(a *app.App)

Start is called once at the start of the demo.

func (*Tube) Update

func (t *Tube) Update(a *app.App, deltaTime time.Duration)

Update is called every frame.

Jump to

Keyboard shortcuts

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