Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Camera ¶
type Camera struct {
HSize float64 //in pixels
VSize float64
FieldOfView float64
Transform *matrix.Matrix
PixelSize float64
HalfHeight float64
HalfWidth float64
}
Camera represents a camera
func (*Camera) RayForPixel ¶
RayForPixel returns the ray from the camera to point (x,y) on canvas
Click to show internal directories.
Click to hide internal directories.