Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Shape ¶
type Shape interface { Intersect(lr *math3d.LightRay) float64 NormalAt(point *math3d.Vector3) *math3d.Vector3 AsMap() map[string]interface{} }
Shape defines the methods shared by all 3D shapes
type Sphere ¶
Sphere defines a spheric shape in 3D space.
func SphereFromMap ¶
SphereFromMap returns a sphere with the values in the map
Click to show internal directories.
Click to hide internal directories.