Recovered from microbel
This commit is contained in:
52
common/include/beam.H
Normal file
52
common/include/beam.H
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* PVVMUD a 3D MUD
|
||||
* Copyright (C) 1998-1999 Programvareverkstedet (pvv@pvv.org)
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
*/
|
||||
#ifndef _BEAM_H
|
||||
#define _BEAM_H
|
||||
|
||||
#include "object.H"
|
||||
#include "vector.H"
|
||||
#include "vertex.H"
|
||||
#include "position.H"
|
||||
#include "matrix.H"
|
||||
#include "bbox.H"
|
||||
|
||||
class CBeam : public CObject {
|
||||
CVector m_point;
|
||||
CVector m_direction;
|
||||
public:
|
||||
CBeam();
|
||||
CBeam(const CVector & point,const CVector & direction);
|
||||
CBeam(const CVertex & point,const CVector & direction);
|
||||
CBeam(const CPosition & point,const CVector & direction);
|
||||
|
||||
const CVector & getPoint() const;
|
||||
const CVector & getDirection() const;
|
||||
|
||||
CBeam operator+ (const CPosition& position) const;
|
||||
|
||||
void transform(const CMatrix & transformation);
|
||||
|
||||
int intersect(const CBBox & bBox) const;
|
||||
};
|
||||
|
||||
ostream& operator<<(ostream&s,const CBeam& b);
|
||||
|
||||
|
||||
#endif // _BEAM_H
|
||||
Reference in New Issue
Block a user