// ellipsoid.h // // Copyright (C) 2002, Chris Laurel // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. #ifndef _CELMATH_ELLIPSOID_H_ #define _CELMATH_ELLIPSOID_H_ #include "vecmath.h" template class Ellipsoid { public: Ellipsoid(); Ellipsoid(const Vector3&); Ellipsoid(const Point3&, const Vector3&); public: Point3 center; Vector3 axes; }; typedef Ellipsoid Ellipsoidf; typedef Ellipsoid Ellipsoidd; template Ellipsoid::Ellipsoid() : center(0, 0, 0), axes(1, 1, 1) { } template Ellipsoid::Ellipsoid(const Vector3& _axes) : center(0, 0, 0), axes(_axes) { } template Ellipsoid::Ellipsoid(const Point3& _center, const Vector3& _axes) : center(_center), axes(_axes) { } #endif // _CELMATH_ELLIPSOID_H_