mt
 All Classes Files Functions Enumerations Groups Pages
Classes | Functions
sphere3.h File Reference
#include <iostream>
#include <limits>
#include <mt/exception.h>
#include <mt/point3.h>
#include <mt/scalar.h>
#include <mt/vector3.h>

Go to the source code of this file.

Classes

class  mt::Sphere3
 Sphere class. More...

Functions

std::ostream & mt::operator<< (std::ostream &os, const Sphere3 &s)
Point3 mt::project (const Point3 &p, const Sphere3 &s)
 Projects point p on sphere s.
Scalar mt::distance (const Point3 &p, const Sphere3 &s)
 Distance from point p to sphere s.
Scalar mt::distance (const Sphere3 &s, const Point3 &p)
 Distance from point p to sphere s.

Detailed Description