Documentation ¶
Index ¶
- func PolarAzimuth(vec vector.Vec) float64
- func Priority(t []*Intersection) float32
- func Sphere2Vec(x Polar) (vector.Vec, error)
- type Intersection
- type Polar
- func (s Polar) Add(b Polar) Polar
- func (s Polar) AddAzimuth(b float32) Polar
- func (s Polar) AddAzimuthDegrees(b float32) Polar
- func (s Polar) AddPolar(b float32) Polar
- func (s Polar) AddPolarDegrees(b float32) Polar
- func (s Polar) Azimuth() float32
- func (s Polar) Copy() Polar
- func (s Polar) Polar() float32
- func (s Polar) Radius() float32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Priority ¶
func Priority(t []*Intersection) float32
Types ¶
type Polar ¶
(radial, azimuth, polar angle)
func Vec2Sphere ¶
Converts Vector to Spherical Coordinates Atan2 errors with az parameter on 0
func (Polar) AddAzimuthDegrees ¶
Add azimuth in degrees
func (Polar) AddPolarDegrees ¶
Add inclination angle in degrees
Click to show internal directories.
Click to hide internal directories.