Versions in this module Expand all Collapse all v0 v0.0.1 May 27, 2024 Changes in this version + const Horizontal + const Orthographic + const Perspective + const Vertical + type Axis int + type Camera struct + func New(aspect float32) *Camera + func NewOrthographic(aspect, near, far, size float32, axis Axis) *Camera + func NewPerspective(aspect, near, far, fov float32, axis Axis) *Camera + func (c *Camera) Aspect() float32 + func (c *Camera) Axis() Axis + func (c *Camera) Far() float32 + func (c *Camera) Fov() float32 + func (c *Camera) Near() float32 + func (c *Camera) ProjMatrix(m *math32.Matrix4) + func (c *Camera) Project(v *math32.Vector3) *math32.Vector3 + func (c *Camera) Projection() Projection + func (c *Camera) SetAspect(aspect float32) + func (c *Camera) SetAxis(axis Axis) + func (c *Camera) SetFar(far float32) + func (c *Camera) SetFov(fov float32) + func (c *Camera) SetNear(near float32) + func (c *Camera) SetProjection(proj Projection) + func (c *Camera) SetSize(size float32) + func (c *Camera) Size() float32 + func (c *Camera) Unproject(v *math32.Vector3) *math32.Vector3 + func (c *Camera) UpdateFov(targetDist float32) + func (c *Camera) UpdateSize(targetDist float32) + func (c *Camera) ViewMatrix(m *math32.Matrix4) + type ICamera interface + ProjMatrix func(m *math32.Matrix4) + ViewMatrix func(m *math32.Matrix4) + type OrbitControl struct + KeyPanSpeed float32 + KeyRotSpeed float32 + KeyZoomSpeed float32 + MaxAzimuthAngle float32 + MaxDistance float32 + MaxPolarAngle float32 + MinAzimuthAngle float32 + MinDistance float32 + MinPolarAngle float32 + RotSpeed float32 + ZoomSpeed float32 + func NewOrbitControl(cam *Camera) *OrbitControl + func (oc *OrbitControl) Dispose() + func (oc *OrbitControl) Enabled() OrbitEnabled + func (oc *OrbitControl) Pan(deltaX, deltaY float32) + func (oc *OrbitControl) Reset() + func (oc *OrbitControl) Rotate(thetaDelta, phiDelta float32) + func (oc *OrbitControl) SetEnabled(bitmask OrbitEnabled) + func (oc *OrbitControl) SetTarget(v math32.Vector3) + func (oc *OrbitControl) Target() math32.Vector3 + func (oc *OrbitControl) Zoom(delta float32) + type OrbitEnabled int + const OrbitAll + const OrbitKeys + const OrbitNone + const OrbitPan + const OrbitRot + const OrbitZoom + type Projection int