Documentation ¶
Index ¶
- type Camera
- type Intersection
- type Light
- type Point3D
- func (p *Point3D) Add(p1 Point3D) Point3D
- func (p *Point3D) ComputeDistance(p1 Point3D) float64
- func (p *Point3D) Multiply(f1 float64) Point3D
- func (p *Point3D) Normalize() Point3D
- func (p *Point3D) Pow(f float64) Point3D
- func (p *Point3D) ScalarProd(p1 Point3D) float64
- func (p *Point3D) Subtract(p1 Point3D) Point3D
- type Ray
- type Sphere
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Intersection ¶
type Point3D ¶
type Point3D struct {
X, Y, Z float64
}
func (*Point3D) ComputeDistance ¶
func (*Point3D) Multiply ¶
TODO: there should be a struct like point3d representing a vector and this method belongs there
func (*Point3D) Normalize ¶
TODO: there should be a struct like point3d representing a vector and this method belongs there
func (*Point3D) ScalarProd ¶
TODO: there should be a struct like point3d representing a vector and this method belongs there
Click to show internal directories.
Click to hide internal directories.