GteFIQuery.h
Go to the documentation of this file.
1 // David Eberly, Geometric Tools, Redmond WA 98052
2 // Copyright (c) 1998-2017
3 // Distributed under the Boost Software License, Version 1.0.
4 // http://www.boost.org/LICENSE_1_0.txt
5 // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
6 // File Version: 3.0.0 (2016/06/19)
7 
8 #pragma once
9 
10 #include <GTEngineDEF.h>
11 
12 namespace gte
13 {
14 
15 // Find-intersection queries.
16 
17 template <typename Real, typename Type0, typename Type1>
18 class FIQuery
19 {
20 public:
21  struct Result
22  {
23  // A FIQuery-base class B must define a B::Result struct with member
24  // 'bool intersect'. A FIQuery-derived class D must also derive a
25  // D::Result from B:Result but may have no members. The member
26  // 'intersect' is 'true' iff the primitives intersect. The operator()
27  // is non-const to allow FIQuery to store and modify private state
28  // that supports the query.
29  };
30  Result operator()(Type0 const& primitive0, Type1 const& primitive1);
31 };
32 
33 }
Result operator()(Type0 const &primitive0, Type1 const &primitive1)


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 03:59:59