Main Page
Namespaces
Classes
Files
File List
File Members
include
Mathematics
GteTriangleKey.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/GteFeatureKey.h
>
11
12
namespace
gte
13
{
14
15
template
<
bool
Ordered>
16
class
TriangleKey
:
public
FeatureKey
<3, Ordered>
17
{
18
public
:
19
// An ordered triangle has V[0] = min(v0,v1,v2). Choose (V[0],V[1],V[2])
20
// to be a permutation of (v0,v1,v2) so that the final storage is one of
21
// (v0,v1,v2), (v1,v2,v0), (v2,v0,v1)
22
// The idea is that if v0 corresponds to (1,0,0), v1 corresponds to
23
// (0,1,0), and v2 corresponds to (0,0,1), the ordering (v0,v1,v2)
24
// corresponds to the 3x3 identity matrix I; the rows are the specified
25
// 3-tuples. The permutation (V[0],V[1],V[2]) induces a permutation of
26
// the rows of the identity matrix to form a permutation matrix P with
27
// det(P) = 1 = det(I).
28
//
29
// An unordered triangle stores a permutation of (v0,v1,v2) so that
30
// V[0] < V[1] < V[2].
31
TriangleKey
(
int
v0
= -1,
int
v1
= -1,
int
v2
= -1);
32
};
33
34
}
GteFeatureKey.h
v1
GLfloat GLfloat v1
Definition:
glcorearb.h:812
gte::FeatureKey
Definition:
GteFeatureKey.h:16
gte::TriangleKey::TriangleKey
TriangleKey(int v0=-1, int v1=-1, int v2=-1)
gte
Definition:
GLX/GteWICFileIO.h:16
gte::TriangleKey
Definition:
GteTriangleKey.h:16
v0
GLfloat v0
Definition:
glcorearb.h:811
v2
GLfloat GLfloat GLfloat v2
Definition:
glcorearb.h:813
geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:01