0031687: Draw Harness, ViewerTest - extend command vrenderparams with option updating...
[occt.git] / src / BVH / BVH_Ray.hxx
1 // Created by: Olga Suryaninova
2 // Created on: 2019-11-25
3 // Copyright (c) 2019 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 #ifndef _BVH_Ray_Header
17 #define _BVH_Ray_Header
18
19 //! Describes a ray based on BVH vectors.
20 template<class T, int N>
21 class BVH_Ray
22 {
23 public:
24
25   typedef typename BVH::VectorType<T, N>::Type BVH_VecNt;
26
27 public:
28
29   BVH_VecNt Origin;
30   BVH_VecNt Direct;
31
32 public:
33
34   BVH_Ray (const BVH_VecNt& theOrigin,
35            const BVH_VecNt& theDirect) : Origin (theOrigin),
36                                          Direct (theDirect) { }
37 };
38
39 #endif // _BVH_Ray_Header