Versions in this module Expand all Collapse all v0 v0.1.0 Mar 14, 2019 Changes in this version + type Camera struct + func (cam *Camera) GetCamera() *Camera + func (cam *Camera) Initialize() + func (cam *Camera) LookAt(target *math32.Vector3) + func (cam *Camera) Project(v *math32.Vector3) (*math32.Vector3, error) + func (cam *Camera) SetRaycaster(rc *core.Raycaster, x, y float32) error + func (cam *Camera) SetUp(up *math32.Vector3) + func (cam *Camera) Target() math32.Vector3 + func (cam *Camera) Unproject(v *math32.Vector3) (*math32.Vector3, error) + func (cam *Camera) Up() math32.Vector3 + func (cam *Camera) ViewMatrix(m *math32.Matrix4) + type ICamera interface + GetCamera func() *Camera + ProjMatrix func(*math32.Matrix4) + Project func(*math32.Vector3) (*math32.Vector3, error) + SetAspect func(float32) + SetRaycaster func(rc *core.Raycaster, x, y float32) error + Unproject func(*math32.Vector3) (*math32.Vector3, error) + ViewMatrix func(*math32.Matrix4) + type Orthographic struct + func NewOrthographic(left, right, top, bottom, near, far float32) *Orthographic + func (cam *Orthographic) Planes() (left, right, top, bottom, near, far float32) + func (cam *Orthographic) ProjMatrix(m *math32.Matrix4) + func (cam *Orthographic) SetAspect(aspect float32) + func (cam *Orthographic) SetZoom(zoom float32) + func (cam *Orthographic) Zoom() float32 + type Perspective struct + func NewPerspective(fov, aspect, near, far float32) *Perspective + func (cam *Perspective) Far() float32 + func (cam *Perspective) Fov() float32 + func (cam *Perspective) Near() float32 + func (cam *Perspective) ProjMatrix(m *math32.Matrix4) + func (cam *Perspective) Project(v *math32.Vector3) (*math32.Vector3, error) + func (cam *Perspective) SetAspect(aspect float32) + func (cam *Perspective) SetFov(fov float32) + func (cam *Perspective) SetRaycaster(rc *core.Raycaster, sx, sy float32) error + func (cam *Perspective) Unproject(v *math32.Vector3) (*math32.Vector3, error) + func (cam Perspective) Aspect() float32