Documentation ¶
Index ¶
Constants ¶
View Source
const (
// Epsilon is the smallest number not considered 0.
Epsilon = 0.00001
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Type ¶
type Type int
Type identifies the type of ray.
const ( // Unspecified is a ray with an unspecified ty.pe Unspecified Type = iota // Camera is a ray whose origin is the camera. Camera // Collision is a ray used to detect collision. Collision // Reflection is a ray generated from a reflection. Reflection // Refraction is a ray generated from a refraction. Refraction // Shadow is a ray toward a light source. Shadow // Illumination is a ray whose origin is a light source. Illumination // NumTypes is the number of ray types. Useful for using an array to map types to some value instead // of a map. NumTypes )
Click to show internal directories.
Click to hide internal directories.