Main Page
Namespaces
Classes
Files
File List
File Members
include
Mathematics
GteDCPQuery.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 <
Mathematics/GteFunctions.h
>
11
12
namespace
gte
13
{
14
15
// Distance and closest-point queries.
16
template
<
typename
Real,
typename
Type0,
typename
Type1>
17
class
DCPQuery
18
{
19
public
:
20
struct
Result
21
{
22
// A DCPQuery-base class B must define a B::Result struct with member
23
// 'Real distance'. A DCPQuery-derived class D must also derive a
24
// D::Result from B:Result but may have no members. The idea is to
25
// allow Result to store closest-point information in addition to the
26
// distance. The operator() is non-const to allow DCPQuery to store
27
// and modify private state that supports the query.
28
};
29
Result
operator()
(Type0
const
& primitive0, Type1
const
& primitive1);
30
};
31
32
}
gte::DCPQuery::operator()
Result operator()(Type0 const &primitive0, Type1 const &primitive1)
GteFunctions.h
gte
Definition:
GLX/GteWICFileIO.h:16
gte::DCPQuery::Result
Definition:
GteDCPQuery.h:20
gte::DCPQuery
Definition:
GteDCPQuery.h:17
geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 03:59:59