Skip to main content

chart_direction

Function chart_direction 

Source
pub fn chart_direction(x: f64, y: f64) -> Vec3
Expand description

The chart of the upper half of the sphere of directions: the square [-1, 1]² onto the unit disc (each side onto a quarter of its circle, by the elliptical grid map), then the disc onto the half sphere by the stereographic projection from the lower pole. The square’s sides are the directions of the level plane z = 0.