Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members |
00001 // Copyright 2006-2011 by Kat'Oun 00002 00003 #ifndef _SPHERE_3D_H_ 00004 #define _SPHERE_3D_H_ 00005 00006 #include <EngineConfig.h> 00007 #include <core/Types.h> 00008 #include <core/Vector3d.h> 00009 00010 namespace core 00011 { 00012 00014 class ENGINE_PUBLIC_EXPORT sphere3d 00015 { 00016 public: 00017 00018 // Constructors 00019 00020 sphere3d(); 00021 sphere3d(const vector3d& center, const f32 radius); 00022 sphere3d(const sphere3d& other); 00023 00024 // operators 00025 00026 sphere3d& operator=(const sphere3d& other); 00027 00028 bool operator==(const sphere3d& other) const; 00029 bool operator!=(const sphere3d& other) const; 00030 00031 // functions 00032 00033 inline void set(const vector3d center, const f32 radius); 00034 inline void set(const sphere3d& s); 00035 00036 vector3d Center; 00037 f32 Radius; 00038 }; 00039 00040 } // end namespace core 00041 00042 #endif
The KG Game Engine
Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:04 by
Doxygen
(1.7.4)
|