Documentation
¶
Index ¶
- type Body
- type Context
- func (c *Context) Body() *Body
- func (c *Context) Cube() *Shape
- func (c *Context) Cylinder() *Shape
- func (c *Context) Debug() (_ *Shape)
- func (c *Context) Extrude(profile []tensor.Vec3, path tensor.Vec3) *Shape
- func (c *Context) Line(v []tensor.Vec3, loop bool) *Object
- func (c *Context) Models() []model.Model
- func (c *Context) Revolve(profile []tensor.Vec3, axis tensor.Vec3) *Shape
- func (c *Context) Sphere() *Shape
- func (c *Context) Torus(r1, r2 float64) *Shape
- type Object
- func (o *Object) Add()
- func (o *Object) Apply(t model.Transform) *Object
- func (o *Object) Rotate(angle float64, axis tensor.Vec3) *Object
- func (o *Object) Scale(v tensor.Vec3) *Object
- func (o *Object) ScaleUniform(v float64) *Object
- func (o *Object) Spin(rate float64, axis tensor.Vec3) *Object
- func (o *Object) Translate(v tensor.Vec3) *Object
- func (o *Object) Wireframe(cull bool) *Object
- type Shape
- func (s *Shape) AddTo(b *Body)
- func (s *Shape) Apply(t shape.Transform) *Shape
- func (s *Shape) Cleave(point, normal tensor.Vec3) (front, back *Shape)
- func (s *Shape) ColorRandom() *Shape
- func (s *Shape) ColorUniform(c tensor.Vec3) *Shape
- func (s *Shape) ColorUniformA(c tensor.Vec4) *Shape
- func (s *Shape) Describe(desc string) *Shape
- func (s *Shape) Object() *Object
- func (s *Shape) Rotate(angle float64, axis tensor.Vec3) *Shape
- func (s *Shape) Scale(v tensor.Vec3) *Shape
- func (s *Shape) ScaleUniform(v float64) *Shape
- func (s *Shape) Translate(v tensor.Vec3) *Shape
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 ¶
type Shape ¶ added in v0.0.2
type Shape struct {
// contains filtered or unexported fields
}
func (*Shape) ColorRandom ¶ added in v0.0.2
func (*Shape) ScaleUniform ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.