Project points from the unit sphere onto a plane orthogonal to the viewing direction.
orthogproj(eye, top, loc)
Viewpoint. A vector of length 3 (or a
Top point. A location which will be projected onto the y axis.
Vector of length 3 (or a
Vector of length 3, or matrix with 3 columns,
This function is used to obtain orthogonal projections of points on the sphere, for use in plotting 3D views of the sphere.
Each point of
loc is expressed
in an orthonormal coordinate system determined by the
top. The coordinate system is
such that the third (z) axis
passes through the eye of the viewer and the
centre of the sphere.
A vector (or matrix) giving the transformed coordinates of each point, with the first two coordinates giving the orthogonal projection.
Adrian Baddeley and Tom Lawrence
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.