Blender V2.61 - r43446

SPHERE.h

Go to the documentation of this file.
00001 
00004 
00005 // This file is part of Wavelet Turbulence.
00006 // 
00007 // Wavelet Turbulence is free software: you can redistribute it and/or modify
00008 // it under the terms of the GNU General Public License as published by
00009 // the Free Software Foundation, either version 3 of the License, or
00010 // (at your option) any later version.
00011 // 
00012 // Wavelet Turbulence is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 // GNU General Public License for more details.
00016 // 
00017 // You should have received a copy of the GNU General Public License
00018 // along with Wavelet Turbulence.  If not, see <http://www.gnu.org/licenses/>.
00019 // 
00020 // Copyright 2008 Theodore Kim and Nils Thuerey
00021 // 
00022 // SPHERE.h: interface for the SPHERE class.
00023 //
00025 
00026 #ifndef SPHERE_H
00027 #define SPHERE_H
00028 
00029 #include "OBSTACLE.h"
00030 
00031 class SPHERE : public OBSTACLE  
00032 {
00033 public:
00034     SPHERE(float x, float y, float z, float radius);
00035     virtual ~SPHERE();
00036 
00037   bool inside(float x, float y, float z);
00038 
00039 private:
00040   float _center[3];
00041   float _radius;
00042 };
00043 
00044 #endif