Documentation ¶
Index ¶
- Constants
- type Camera
- func (cam *Camera) CopyFront(a vector.Vec)
- func (cam *Camera) FrontVec() vector.Vec
- func (cam *Camera) Log()
- func (cam *Camera) Rotate(axis vector.Vec, angle float32)
- func (cam *Camera) RotateFPS(rot vector.Vec)
- func (cam *Camera) Translate(vec vector.Vec)
- func (cam *Camera) Transpose() matrix.Mat
- func (cam *Camera) Update() matrix.Mat
Constants ¶
View Source
const ( YAW = -90.0 RAD = 0.0174532925 PI = 3.1415729 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Camera ¶
type Camera struct { Transform transform.Transform ViewMatrix matrix.Mat Pos vector.Vec Rot vector.Vec Front vector.Vec Exposure float32 }
Camera World Identity View Matrix Performs TMRT^ Normalize Operation for matrix construction
func (*Camera) RotateFPS ¶
RotateFPS treats camera rotation as a rotation of its front facing direction
around a fixed up axis and arbitrary and calculated X (right) axis
Click to show internal directories.
Click to hide internal directories.