GteEdgeKey.cpp
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 #include <GTEnginePCH.h>
10 
11 namespace gte
12 {
13 
14 
15 template<>
17 {
18  V[0] = v0;
19  V[1] = v1;
20 }
21 
22 template<>
24 {
25  if (v0 < v1)
26  {
27  // v0 is minimum
28  V[0] = v0;
29  V[1] = v1;
30  }
31  else
32  {
33  // v1 is minimum
34  V[0] = v1;
35  V[1] = v0;
36  }
37 }
38 
39 
40 }
GLfloat GLfloat v1
Definition: glcorearb.h:812
EdgeKey(int v0=-1, int v1=-1)
GLfloat v0
Definition: glcorearb.h:811


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