object

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

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

func (*Body) Add

func (b *Body) Add(o *Object) *Body

func (*Body) Describe

func (b *Body) Describe(desc string) *Body

func (*Body) Object

func (b *Body) Object() *Object

type Context

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

func (*Context) Body

func (c *Context) Body() *Body

func (*Context) Cube

func (c *Context) Cube() *Object

func (*Context) Cylinder

func (c *Context) Cylinder() *Object

func (*Context) Extrude

func (c *Context) Extrude(profile []mesh.Vec, path mesh.Vec) *Object

func (*Context) Models

func (c *Context) Models() []model.Model

func (*Context) Revolve

func (c *Context) Revolve(profile []mesh.Vec, axis mesh.Vec) *Object

func (*Context) Sphere

func (c *Context) Sphere() *Object

func (*Context) Torus

func (c *Context) Torus(r1, r2 float32) *Object

type Object

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

func (*Object) Add

func (o *Object) Add()

func (*Object) AddTo

func (o *Object) AddTo(b *Body)

func (*Object) Apply

func (o *Object) Apply(t mesh.Transform) *Object

func (*Object) Describe

func (o *Object) Describe(desc string) *Object

func (*Object) Rotate

func (o *Object) Rotate(angle float32, axis Vector) *Object

func (*Object) Scale

func (o *Object) Scale(x, y, z float32) *Object

func (*Object) ScaleUniform

func (o *Object) ScaleUniform(v float32) *Object

func (*Object) ScaleV

func (o *Object) ScaleV(v Vector) *Object

func (*Object) Spin

func (o *Object) Spin(rate float32, axis Vector) *Object

func (*Object) Translate

func (o *Object) Translate(x, y, z float32) *Object

func (*Object) TranslateV

func (o *Object) TranslateV(v Vector) *Object

type Vector

type Vector = mgl32.Vec3

Jump to

Keyboard shortcuts

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