17 #include "geometry.hpp" vector tangent(const vector &) const
Compute a tangent of the sphere from a local position.
Definition: sphere.cpp:22
Sphere(double r)
Make a new sphere at .
Definition: sphere.cpp:14
virtual std::vector< hit > hits(const euclidian &) const
Compute hits between the sphere and an euclidian.
Definition: sphere.cpp:61
3D vector
Definition: vector.hpp:28
Geometric entity.
Definition: geometry.hpp:39
Geometric surface element unit.
Definition: element.hpp:43
void setRay(double r)
Set the ray of the sphere.
Definition: sphere.cpp:35
virtual vector uv(const element &) const
UV-map a surface element on the sphere.
Definition: sphere.cpp:84
vector normal(const vector &) const
Compute a normal of the sphere from a local position.
Definition: sphere.cpp:18
Localised vector class.
Definition: euclidian.hpp:27
Geometric sphere.
Definition: sphere.hpp:24
double ray() const
The ray of the sphere.
Definition: sphere.cpp:31