box.h
Go to the documentation of this file.
00001 /******************************************************************************
00002  * \file
00003  *
00004  * $Id:$
00005  *
00006  * Copyright (C) Brno University of Technology (BUT)
00007  *
00008  * This file is part of software developed by dcgm-robotics@FIT group.
00009  *
00010  * Author: Jan Gorig (xgorig01@stud.fit.vutbr.cz)
00011  * Supervised by: Michal Spanel (spanel@fit.vutbr.cz)
00012  * Date: 12/04/2012
00013  *
00014  * This file is free software: you can redistribute it and/or modify
00015  * it under the terms of the GNU Lesser General Public License as published by
00016  * the Free Software Foundation, either version 3 of the License, or
00017  * (at your option) any later version.
00018  *
00019  * This file is distributed in the hope that it will be useful,
00020  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00021  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00022  * GNU Lesser General Public License for more details.
00023  *
00024  * You should have received a copy of the GNU Lesser General Public License
00025  * along with this file.  If not, see <http://www.gnu.org/licenses/>.
00026  */
00027 
00028 #pragma once
00029 #ifndef OBJTREE_BOX_H
00030 #define OBJTREE_BOX_H
00031 
00032 namespace objtree
00033 {
00034 
00039 struct Box
00040 {
00041     float x, y, z;
00042     float w, h, d;
00043 
00044     inline Box()
00045     {
00046     }
00047 
00048     inline Box(float x, float y, float z, float w, float h, float d)
00049     {
00050         init(x, y, z, w, h, d);
00051     }
00052 
00053     inline void init(float x, float y, float z, float w, float h, float d)
00054     {
00055         this->x = x;
00056         this->y = y;
00057         this->z = z;
00058         this->w = w;
00059         this->h = h;
00060         this->d = d;
00061     }
00062 
00063     bool operator==(const Box &box)
00064     {
00065         return box.x == x && box.y == y && box.z == z && box.w == w && box.h == h && box.d == d;
00066     }
00067 };
00068 
00069 }
00070 
00071 #endif // OBJTREE_BOX_H


srs_env_model
Author(s): Vit Stancl (stancl@fit.vutbr.cz), Tomas Lokaj, Jan Gorig, Michal Spanel (spanel@fit.vutbr.cz)
autogenerated on Mon Oct 6 2014 08:05:04