An object p of type Sphere_point<R> is a point on the surface of a unit sphere. Such points correspond to the nontrivial directions in space and similarly to the equivalence classes of all nontrivial vectors under normalization.
| |
ring number type.
|
| |
creates some sphere point.
| |
| |
creates a sphere
point corresponding to the point of intersection of the ray starting
at the origin in direction and the surface of .
|
Access to the coordinates is provided by the following operations. Note that the vector is not normalized.
|
| the -coordinate. |
|
| the -coordinate. |
|
| the -coordinate. |
|
| Equality. |
|
| Inequality. |
|
| returns the antipode of p. |