Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

boundingbox.cc

Go to the documentation of this file.
00001 /*
00002   svas_server -- virtual World Server of Svas
00003   Copyright (c) 2001, 2002 David Moreno Montero
00004  
00005  
00006   This program is free software; you can redistribute it and/or modify
00007   it under the terms of the GNU General Public License as published by
00008   the Free Software Foundation; either version 2 of the License, or
00009   (at your option) any later version.
00010  
00011   This program is distributed in the hope that it will be useful, but
00012   WITHOUT ANY WARRANTY; without even the implied warranty of
00013   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014   General Public License for more details.
00015  
00016   You should have received a copy of the GNU General Public License
00017   along with this program; if not, write to the Free Software
00018   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00019   02111-1307, USA.  
00020 
00021 */
00022 
00023 #include "boundingbox.h"
00024 #include "log.h"
00025 #include <string.h>
00026 
00027 BoundingBox::BoundingBox(Vector3d _min, Vector3d _max){
00028   min=_min;
00029   max=_max;
00030 }
00031 
00032 string BoundingBox::toString(void){
00033   string a=string("BBox from ");
00034   a+=min.toString();
00035   a+=" to ";
00036   a+=max.toString();
00037 
00038   return a;
00039 }
00040 
00041 BoundingBox BoundingBox::operator=(BoundingBox &bbox){
00042   min=bbox.min;
00043   max=bbox.max;
00044   
00045   return *this;
00046 }

Generated on Mon Jun 17 19:53:43 2002 for Svas Server by doxygen1.2.16