fixture

package
v0.0.0-...-8a2580e Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTransformation

func NewTransformation(topLeft, bottomRight, newTopLeft, newBottomRight *math32.Vector3) (scale, translate *math32.Vector3)

Types

type Fixture

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

func NewFixture

func NewFixture(path string) *Fixture

func (*Fixture) Available

func (f *Fixture) Available() bool

func (Fixture) BottomRight

func (f Fixture) BottomRight() *math32.Vector3

func (*Fixture) FindCorners

func (f *Fixture) FindCorners(pts []*math32.Vector3) (topLeft, bottomRight *math32.Vector3)

func (*Fixture) Length

func (f *Fixture) Length() int

func (*Fixture) Next

func (f *Fixture) Next() *math32.Vector3

func (*Fixture) Reset

func (f *Fixture) Reset()

func (*Fixture) ResetTransformation

func (f *Fixture) ResetTransformation()

func (Fixture) TopLeft

func (f Fixture) TopLeft() *math32.Vector3

func (*Fixture) Transform

func (f *Fixture) Transform(scale, translate *math32.Vector3)

func (*Fixture) Transformed

func (f *Fixture) Transformed() []*math32.Vector3

func (Fixture) TransformedBottomRight

func (f Fixture) TransformedBottomRight() *math32.Vector3

func (Fixture) TransformedTopLeft

func (f Fixture) TransformedTopLeft() *math32.Vector3

func (*Fixture) UpdatePoints

func (f *Fixture) UpdatePoints()

Make the transformation permanent Update all points and corners.

type Scene

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

func NewScene

func NewScene(fixtures []*Fixture) *Scene

func (*Scene) SaveAs

func (s *Scene) SaveAs(filename string) error

Jump to

Keyboard shortcuts

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