TORCS
1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
Endpoint.h
Go to the documentation of this file.
1
/*
2
SOLID - Software Library for Interference Detection
3
Copyright (C) 1997-1998 Gino van den Bergen
4
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Library General Public
7
License as published by the Free Software Foundation; either
8
version 2 of the License, or (at your option) any later version.
9
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Library General Public License for more details.
14
15
You should have received a copy of the GNU Library General Public
16
License along with this library; if not, write to the Free
17
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
19
Please send remarks, questions and bug reports to gino@win.tue.nl,
20
or write to:
21
Gino van den Bergen
22
Department of Mathematics and Computing Science
23
Eindhoven University of Technology
24
P.O. Box 513, 5600 MB Eindhoven, The Netherlands
25
*/
26
27
#ifndef ENDPOINT_H
28
#define ENDPOINT_H
29
30
#ifdef _MSC_VER
31
#pragma warning(disable:4786)
// identifier was truncated to '255'
32
#endif
// _MSC_VER
33
34
#include <3D/Basic.h>
35
36
enum
{
MIN
= 0,
MAX
= 1 };
37
typedef
int
Side
;
38
39
class
Object
;
40
41
class
Endpoint
{
42
public
:
43
Endpoint
*
succ
;
44
Endpoint
*
pred
;
45
Side
side
;
46
const
Object
*
objPtr
;
47
Scalar
pos
;
48
49
Endpoint
() :
objPtr
(0) {}
50
Endpoint
(
int
axis,
Side
s,
const
Object
*obj);
51
~Endpoint
() {
if
(
objPtr
)
remove
(); }
52
53
void
move
(
Scalar
x);
54
55
private
:
56
void
insert
(
Endpoint
*
p
);
57
void
remove
() {
succ
->pred =
pred
;
pred
->succ =
succ
; }
58
};
59
60
61
#endif
62
Scalar
#define Scalar
Definition
Basic.h:34
move
void move()
Definition
C-api.cpp:81
p
static Point p[4]
Definition
Convex.cpp:54
Side
int Side
Definition
Endpoint.h:37
Endpoint
Definition
Endpoint.h:41
Endpoint::Endpoint
Endpoint()
Definition
Endpoint.h:49
Endpoint::~Endpoint
~Endpoint()
Definition
Endpoint.h:51
Endpoint::side
Side side
Definition
Endpoint.h:45
Endpoint::succ
Endpoint * succ
Definition
Endpoint.h:43
Endpoint::insert
void insert(Endpoint *p)
Definition
Endpoint.cpp:55
Endpoint::pred
Endpoint * pred
Definition
Endpoint.h:44
Endpoint::remove
void remove()
Definition
Endpoint.h:57
Endpoint::objPtr
const Object * objPtr
Definition
Endpoint.h:46
Endpoint::pos
Scalar pos
Definition
Endpoint.h:47
Object
Definition
Object.h:41
MIN
#define MIN(x, y)
Definition
tgf.h:56
MAX
#define MAX(x, y)
Definition
tgf.h:52
C:
Users
berni
Development
torcs_git
torcs-code
torcs
torcs
src
modules
simu
simuv2
SOLID-2.0
src
Endpoint.h
Generated by
1.14.0