Documentation ¶
Index ¶
- type Body
- type Context
- func (c *Context) Body() *Body
- func (c *Context) Cube() *Object
- func (c *Context) Cylinder() *Object
- func (c *Context) Extrude(profile []mesh.Vec, path mesh.Vec) *Object
- func (c *Context) Models() []model.Model
- func (c *Context) Revolve(profile []mesh.Vec, axis mesh.Vec) *Object
- func (c *Context) Sphere() *Object
- func (c *Context) Torus(r1, r2 float32) *Object
- type Object
- func (o *Object) Add()
- func (o *Object) AddTo(b *Body)
- func (o *Object) Apply(t mesh.Transform) *Object
- func (o *Object) Describe(desc string) *Object
- func (o *Object) Rotate(angle float32, axis Vector) *Object
- func (o *Object) Scale(x, y, z float32) *Object
- func (o *Object) ScaleUniform(v float32) *Object
- func (o *Object) ScaleV(v Vector) *Object
- func (o *Object) Spin(rate float32, axis Vector) *Object
- func (o *Object) Translate(x, y, z float32) *Object
- func (o *Object) TranslateV(v Vector) *Object
- type Vector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
func (*Object) ScaleUniform ¶
func (*Object) TranslateV ¶
Click to show internal directories.
Click to hide internal directories.