00001 // Magic Software, Inc. 00002 // http://www.magic-software.com 00003 // Copyright (c) 2000, All Rights Reserved 00004 // 00005 // Source code from Magic Software is supplied under the terms of a license 00006 // agreement and may not be copied or disclosed except in accordance with the 00007 // terms of that agreement. The various license agreements may be found at 00008 // the Magic Software web site. This file is subject to the license 00009 // 00010 // FREE SOURCE CODE 00011 // http://www.magic-software.com/License.html/free.pdf 00012 00013 #ifndef MGCRAY3_H 00014 #define MGCRAY3_H 00015 00016 #include "MgcVector3.h" 00017 00018 00019 class MgcRay3 00020 { 00021 public: 00022 // ray starts at origin P and has direction D 00023 MgcRay3 (); 00024 00025 MgcVector3& Origin (); 00026 const MgcVector3& Origin () const; 00027 00028 MgcVector3& Direction (); 00029 const MgcVector3& Direction () const; 00030 00031 protected: 00032 MgcVector3 m_kOrigin; // P 00033 MgcVector3 m_kDirection; // D 00034 }; 00035 00036 #include "MgcRay3.inl" 00037 00038 #endif