transform2d

package
v0.0.0-...-53e25cf Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2012 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Type component.Type = component.RegisterComponentType("transform2d", cFactory, Data{})

Functions

This section is empty.

Types

type Component

type Component struct {
	*component.Base
	Translation math3d.Vector2
	Rotation    math3d.Vector2 // cos, sin
	Scale       math3d.Vector2
}

func (*Component) Destroy

func (this *Component) Destroy(parent component.Collection)

func (Component) GetType

func (Component) GetType() component.Type

func (*Component) Initialize

func (this *Component) Initialize(parent component.Collection)

func (*Component) LoadData

func (this *Component) LoadData(data component.Data)

type Data

type Data struct {
	Translation *math3d.Vector2
	Rotation    *float64
	Scale       *math3d.Vector2
}

func (Data) GetType

func (Data) GetType() component.Type

Jump to

Keyboard shortcuts

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